func init // adds using namespace sys.add_use('System.Net') end func doGetMethod(args) event('onEquals', sys.to_type(args, 0) + '.Equals(' + d("obj") + ')') event('onGetHashCode', sys.to_type(args, 0) + '.GetHashCode()') event('onGetType', sys.to_type(args, 0) + '.GetType()') event('onToString', sys.to_type(args, 0) + '.ToString()') event('onBytesReceived', sys.to_type(args, 0) + '.BytesReceived') event('onBytesSent', sys.to_type(args, 0) + '.BytesSent') event('onProgressPercentage', sys.to_type(args, 0) + '.ProgressPercentage') event('onTotalBytesToReceive', sys.to_type(args, 0) + '.TotalBytesToReceive') event('onTotalBytesToSend', sys.to_type(args, 0) + '.TotalBytesToSend') event('onUserState', sys.to_type(args, 0) + '.UserState') end