yijunyu/c-to-rust huggingface dataset:
// Original:
public void seekExact(BytesRef target, TermState otherState) {if (!target.equals(term)) {state.copyFrom(otherState);term = BytesRef.deepCopyOf(target);seekPending = true;}}

// Translation:
public override void SeekExact(BytesRef target, TermState otherState){if (!target.Equals(term)){state.CopyFrom(otherState);term = BytesRef.DeepCopyOf(target);seekPending = true;}}
// Original:
public void seek(long pos) throws IOException {if (pos != getFilePointer()) {final long alignedPos = pos & ALIGN_NOT_MASK;filePos = alignedPos-bufferSize;final int delta = (int) (pos - alignedPos);if (delta != 0) {refill();buffer.position(delta);bufferPos = delta;} else {bufferPos = bufferSize;}}}

// Translation:
public void seek(long pos) throws IOException{if (pos != FilePointer){long alignedPos = pos & ALIGN_NOT_MASK;filePos = alignedPos - bufferSize;int delta = (int)(pos - alignedPos);if (delta != 0){refill();buffer.position(delta);bufferPos = delta;}else{bufferPos = bufferSize;}}}
// Original:
public void clear() {removeAllElements();}

// Translation:
public override void clear(){removeAllElements();}
// Original:
public QueryCustomerByPhoneRequest() {super("xspace", "2017-07-20", "QueryCustomerByPhone");setUriPattern("/customerbyphone");setMethod(MethodType.POST);}

// Translation:
public QueryCustomerByPhoneRequest(): base("xspace", "2017-07-20", "QueryCustomerByPhone"){UriPattern = "/customerbyphone";Method = MethodType.POST;}
// Original:
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0) {return this.evaluate(srcRowIndex, srcColumnIndex, arg0, null);}

// Translation:
public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0){return this.Evaluate(srcRowIndex, srcColumnIndex, arg0, null);}
// Original:
public ListDashboardVersionsResult listDashboardVersions(ListDashboardVersionsRequest request) {request = beforeClientExecution(request);return executeListDashboardVersions(request);}

// Translation:
public virtual ListDashboardVersionsResponse ListDashboardVersions(ListDashboardVersionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDashboardVersionsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDashboardVersionsResponseUnmarshaller.Instance;return Invoke<ListDashboardVersionsResponse>(request, options);}
// Original:
public IntBuffer put(int c) {if (position == limit) {throw new BufferOverflowException();}backingArray[offset + position++] = c;return this;}

// Translation:
public override java.nio.IntBuffer put(int c){if (_position == _limit){throw new java.nio.BufferOverflowException();}backingArray[offset + _position++] = c;return this;}
// Original:
public DeleteHostedZoneResult deleteHostedZone(DeleteHostedZoneRequest request) {request = beforeClientExecution(request);return executeDeleteHostedZone(request);}

// Translation:
public virtual DeleteHostedZoneResponse DeleteHostedZone(DeleteHostedZoneRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteHostedZoneRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteHostedZoneResponseUnmarshaller.Instance;return Invoke<DeleteHostedZoneResponse>(request, options);}
// Original:
public CreateReceiptRuleResult createReceiptRule(CreateReceiptRuleRequest request) {request = beforeClientExecution(request);return executeCreateReceiptRule(request);}

// Translation:
public virtual CreateReceiptRuleResponse CreateReceiptRule(CreateReceiptRuleRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateReceiptRuleRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateReceiptRuleResponseUnmarshaller.Instance;return Invoke<CreateReceiptRuleResponse>(request, options);}
// Original:
public Result rename() throws IOException {try {result = doRename();return result;} catch (IOException err) {result = Result.IO_FAILURE;throw err;}}

// Translation:
public virtual RefUpdate.Result Rename(){try{result = DoRename();return result;}catch (IOException err){result = RefUpdate.Result.IO_FAILURE;throw;}}
// Original:
public DescribeDBInstancesResult describeDBInstances() {return describeDBInstances(new DescribeDBInstancesRequest());}

// Translation:
public virtual DescribeDBInstancesResponse DescribeDBInstances(){return DescribeDBInstances(new DescribeDBInstancesRequest());}
// Original:
public String toString() {if (label != null) {return label + ":" + tag;}return tag;}

// Translation:
public override string ToString(){return ruleName + ":" + bypassTokenType;}
// Original:
public CharSequence toQueryString(EscapeQuerySyntax escaper) {return "[DELETEDCHILD]";}

// Translation:
public override string ToQueryString(IEscapeQuerySyntax escaper){return "[DELETEDCHILD]";}
// Original:
public CreateAccountResult createAccount(CreateAccountRequest request) {request = beforeClientExecution(request);return executeCreateAccount(request);}

// Translation:
public virtual CreateAccountResponse CreateAccount(CreateAccountRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateAccountRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateAccountResponseUnmarshaller.Instance;return Invoke<CreateAccountResponse>(request, options);}
// Original:
public Map.Entry<K,V> next() {HashEntry<K,V> e = super.nextEntry();return new WriteThroughEntry(e.key, e.value);}

// Translation:
public override java.util.MapClass.Entry<K, V> next(){return this.nextEntry();}
// Original:
public BaseRef(RefEval re) {_refEval = re;_areaEval = null;_firstRowIndex = re.getRow();_firstColumnIndex = re.getColumn();_height = 1;_width = 1;}

// Translation:
public BaseRef(RefEval re){_refEval = re;_areaEval = null;_firstRowIndex = re.Row;_firstColumnIndex = re.Column;_height = 1;_width = 1;}
// Original:
public void decode(long[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations) {for (int i = 0; i < iterations; ++i) {final long block = blocks[blocksOffset++];for (int shift = 62; shift >= 0; shift -= 2) {values[valuesOffset++] = (block >>> shift) & 3;}}}

// Translation:
public override void Decode(long[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations){for (int i = 0; i < iterations; ++i){long block = blocks[blocksOffset++];for (int shift = 62; shift >= 0; shift -= 2){values[valuesOffset++] = ((long)((ulong)block >> shift)) & 3;}}}
// Original:
public void unrollRecursionContexts(ParserRuleContext _parentctx) {_precedenceStack.pop();_ctx.stop = _input.LT(-1);ParserRuleContext retctx = _ctx; if ( _parseListeners != null ) {while ( _ctx != _parentctx ) {triggerExitRuleEvent();_ctx = (ParserRuleContext)_ctx.parent;}}else {_ctx = _parentctx;}retctx.parent = _parentctx;if (_buildParseTrees && _parentctx != null) {_parentctx.addChild(retctx);}}

// Translation:
public virtual void UnrollRecursionContexts(ParserRuleContext _parentctx){_precedenceStack.RemoveAt(_precedenceStack.Count - 1);_ctx.Stop = _input.LT(-1);ParserRuleContext retctx = _ctx;if (_parseListeners != null){while (_ctx != _parentctx){TriggerExitRuleEvent();_ctx = (ParserRuleContext)_ctx.Parent;}}else{_ctx = _parentctx;}retctx.Parent = _parentctx;if (_buildParseTrees && _parentctx != null){_parentctx.AddChild(retctx);}}
// Original:
public CancelBundleTaskRequest(String bundleId) {setBundleId(bundleId);}

// Translation:
public CancelBundleTaskRequest(string bundleId){_bundleId = bundleId;}
// Original:
public void add(CharsRef input, CharsRef output, boolean includeOrig) {add(input, countWords(input), output, countWords(output), includeOrig);}

// Translation:
public virtual void Add(CharsRef input, CharsRef output, bool includeOrig){Add(input, CountWords(input), output, CountWords(output), includeOrig);}
// Original:
public SetIdentityDkimEnabledResult setIdentityDkimEnabled(SetIdentityDkimEnabledRequest request) {request = beforeClientExecution(request);return executeSetIdentityDkimEnabled(request);}

// Translation:
public virtual SetIdentityDkimEnabledResponse SetIdentityDkimEnabled(SetIdentityDkimEnabledRequest request){var options = new InvokeOptions();options.RequestMarshaller = SetIdentityDkimEnabledRequestMarshaller.Instance;options.ResponseUnmarshaller = SetIdentityDkimEnabledResponseUnmarshaller.Instance;return Invoke<SetIdentityDkimEnabledResponse>(request, options);}
// Original:
public GetResolverEndpointResult getResolverEndpoint(GetResolverEndpointRequest request) {request = beforeClientExecution(request);return executeGetResolverEndpoint(request);}

// Translation:
public virtual GetResolverEndpointResponse GetResolverEndpoint(GetResolverEndpointRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetResolverEndpointRequestMarshaller.Instance;options.ResponseUnmarshaller = GetResolverEndpointResponseUnmarshaller.Instance;return Invoke<GetResolverEndpointResponse>(request, options);}
// Original:
public void setText(String value) {string = value;start = offset = 0;end = value.length();}

// Translation:
public void setText(string value){@string = value;start = offset = 0;end = value.Length;}
// Original:
public String toString() {return toString(0);}

// Translation:
public override string ToString(){return ToString(0);}
// Original:
public void adjustIndex(int offset) {_firstSheetIndex += offset;_lastSheetIndex += offset;}

// Translation:
public void AdjustIndex(int offset){_firstSheetIndex += offset;_lastSheetIndex += offset;}
// Original:
public GalicianStemFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}

// Translation:
public GalicianStemFilterFactory(IDictionary<string, string> args): base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
// Original:
public ListRepositoryAssociationsResult listRepositoryAssociations(ListRepositoryAssociationsRequest request) {request = beforeClientExecution(request);return executeListRepositoryAssociations(request);}

// Translation:
public virtual ListRepositoryAssociationsResponse ListRepositoryAssociations(ListRepositoryAssociationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListRepositoryAssociationsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListRepositoryAssociationsResponseUnmarshaller.Instance;return Invoke<ListRepositoryAssociationsResponse>(request, options);}
// Original:
public void setParams(String params) {super.setParams(params);maxNumSegments = (int)Double.parseDouble(params);}

// Translation:
public override void SetParams(string @params){base.SetParams(@params);maxNumSegments = (int)double.Parse(@params, CultureInfo.InvariantCulture);}
// Original:
public char getChar() {return (char) getShort();}

// Translation:
public override char getChar(){return (char)getShort();}
// Original:
public void next(int delta) {if (delta == 1) {prevPtr = currPtr;currPtr = nextPtr;if (!eof())parseEntry();return;}final int end = raw.length;int ptr = nextPtr;while (--delta > 0 && ptr != end) {prevPtr = ptr;while (raw[ptr] != 0)ptr++;ptr += OBJECT_ID_LENGTH + 1;}if (delta != 0)throw new ArrayIndexOutOfBoundsException(delta);currPtr = ptr;if (!eof())parseEntry();}

// Translation:
public override void Next(int delta){if (delta == 1){prevPtr = currPtr;currPtr = nextPtr;if (!Eof){ParseEntry();}return;}int end = raw.Length;int ptr = nextPtr;while (--delta > 0 && ptr != end){prevPtr = ptr;while (raw[ptr] != 0){ptr++;}ptr += Constants.OBJECT_ID_LENGTH + 1;}if (delta != 0){throw Sharpen.Extensions.CreateIndexOutOfRangeException(delta);}currPtr = ptr;if (!Eof){ParseEntry();}}
// Original:
public Type getType() {return type;}

// Translation:
public virtual ReceiveCommand.Type GetType(){return type;}
// Original:
public CharBuffer duplicate() {return copy(this, mark);}

// Translation:
public override java.nio.CharBuffer duplicate(){return copy(this, _mark);}
// Original:
public NGramFilterFactory(Map<String, String> args) {super(args);minGramSize = requireInt(args, "minGramSize");maxGramSize = requireInt(args, "maxGramSize");preserveOriginal = getBoolean(args, "preserveOriginal", NGramTokenFilter.DEFAULT_PRESERVE_ORIGINAL);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}

// Translation:
public NGramFilterFactory(IDictionary<string, string> args): base(args){minGramSize = GetInt32(args, "minGramSize", NGramTokenFilter.DEFAULT_MIN_NGRAM_SIZE);maxGramSize = GetInt32(args, "maxGramSize", NGramTokenFilter.DEFAULT_MAX_NGRAM_SIZE);if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
// Original:
public AddRoleToDBClusterResult addRoleToDBCluster(AddRoleToDBClusterRequest request) {request = beforeClientExecution(request);return executeAddRoleToDBCluster(request);}

// Translation:
public virtual AddRoleToDBClusterResponse AddRoleToDBCluster(AddRoleToDBClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = AddRoleToDBClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = AddRoleToDBClusterResponseUnmarshaller.Instance;return Invoke<AddRoleToDBClusterResponse>(request, options);}
// Original:
public BlameGenerator setTextComparator(RawTextComparator comparator) {textComparator = comparator;return this;}

// Translation:
public virtual NGit.Blame.BlameGenerator SetTextComparator(RawTextComparator comparator){textComparator = comparator;return this;}
// Original:
public  PatternCaptureGroupFilterFactory(Map<String,String> args) {super(args);pattern = getPattern(args, "pattern");preserveOriginal = args.containsKey("preserve_original") ? Boolean.parseBoolean(args.get("preserve_original")) : true;}

// Translation:
public PatternCaptureGroupFilterFactory(IDictionary<string, string> args): base(args){pattern = GetPattern(args, "pattern");preserveOriginal = args.TryGetValue("preserve_original", out string value) ? bool.Parse(value) : true;}
// Original:
public CreateObjectResult createObject(CreateObjectRequest request) {request = beforeClientExecution(request);return executeCreateObject(request);}

// Translation:
public virtual CreateObjectResponse CreateObject(CreateObjectRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateObjectRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateObjectResponseUnmarshaller.Instance;return Invoke<CreateObjectResponse>(request, options);}
// Original:
@Override public String getActions() { return null; }

// Translation:
public override string getActions(){return null;}
// Original:
public void onChanged() {if (mAdapter != null) {post(new Runnable() {@Override

// Translation:
public override void onChanged(){if (this._enclosing.isShowing()){this._enclosing.show();}}
// Original:
public CreateResourceGroupResult createResourceGroup(CreateResourceGroupRequest request) {request = beforeClientExecution(request);return executeCreateResourceGroup(request);}

// Translation:
public virtual CreateResourceGroupResponse CreateResourceGroup(CreateResourceGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateResourceGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateResourceGroupResponseUnmarshaller.Instance;return Invoke<CreateResourceGroupResponse>(request, options);}
// Original:
public static RevFilter has(RevFlag a) {final RevFlagSet s = new RevFlagSet();s.add(a);return new HasAll(s);}

// Translation:
public static RevFilter Has(RevFlag a){RevFlagSet s = new RevFlagSet();s.AddItem(a);return new RevFlagFilter.HasAll(s);}
// Original:
@Override public int size() {return totalSize;}

// Translation:
public override int size(){return this._enclosing._size;}
// Original:
public void write(LittleEndianOutput out) {out.writeByte(sid + getPtgClass());out.writeShort(field_1_index_extern_sheet);out.writeInt(unused1);}

// Translation:
public override void Write(ILittleEndianOutput out1){out1.WriteByte(sid + PtgClass);out1.WriteShort(field_1_index_extern_sheet);out1.WriteInt(unused1);}
// Original:
public String toString() {return this.getClass().getSimpleName() + "@" + directory + " lockFactory=" + lockFactory;}

// Translation:
public override string ToString(){return this.GetType().Name + "@" + m_directory + " lockFactory=" + LockFactory;}
// Original:
public final ValueEval evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex) {switch (args.length) {case 3:return evaluate(srcRowIndex, srcColumnIndex, args[0], args[1], args[2]);case 4:return evaluate(srcRowIndex, srcColumnIndex, args[0], args[1], args[2], args[3]);}return ErrorEval.VALUE_INVALID;}

// Translation:
public ValueEval Evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex){switch (args.Length){case 3:return Evaluate(srcRowIndex, srcColumnIndex, args[0], args[1], args[2]);case 4:return Evaluate(srcRowIndex, srcColumnIndex, args[0], args[1], args[2], args[3]);}return ErrorEval.VALUE_INVALID;}
// Original:
public CancelDataRepositoryTaskResult cancelDataRepositoryTask(CancelDataRepositoryTaskRequest request) {request = beforeClientExecution(request);return executeCancelDataRepositoryTask(request);}

// Translation:
public virtual CancelDataRepositoryTaskResponse CancelDataRepositoryTask(CancelDataRepositoryTaskRequest request){var options = new InvokeOptions();options.RequestMarshaller = CancelDataRepositoryTaskRequestMarshaller.Instance;options.ResponseUnmarshaller = CancelDataRepositoryTaskResponseUnmarshaller.Instance;return Invoke<CancelDataRepositoryTaskResponse>(request, options);}
// Original:
public DateFormatTokenizer(String format) {this.format = format;}

// Translation:
public DateFormatTokenizer(string format){this.format = format;}
// Original:
public static int getBiasedExponent(long rawBits) {return Math.toIntExact((rawBits & EXPONENT_MASK) >> EXPONENT_SHIFT);}

// Translation:
public static int GetBiasedExponent(long rawBits){return (int)((rawBits & EXPONENT_MASK) >> EXPONENT_SHIFT);}
// Original:
public String toString() {return "IB " + distribution.toString() + "-" + lambda.toString()+ normalization.toString();}

// Translation:
public override string ToString(){return "IB " + m_distribution.ToString() + "-" + m_lambda.ToString() + m_normalization.ToString();}
// Original:
public String getName() {return name;}

// Translation:
public string GetName(){return name;}
// Original:
public boolean inContext(String context) {return false;}

// Translation:
public virtual bool InContext(string context){return false;}
// Original:
public String toString() {String desc;File directory = getDirectory();if (directory != null)desc = directory.getPath();elsedesc = getClass().getSimpleName() + "-" + System.identityHashCode(this);return "Repository[" + desc + "]"; }

// Translation:
public override string ToString(){string desc;if (Directory != null){desc = Directory.GetPath();}else{desc = GetType().Name + "-" + Runtime.IdentityHashCode(this);}return "Repository[" + desc + "]";}
// Original:
public int serialize(int offset, byte [] data) {LittleEndian.putInt(data, offset+0, field_13_border_styles1);LittleEndian.putInt(data, offset+4, field_14_border_styles2);return 8;}

// Translation:
public int Serialize(int offset, byte[] data){LittleEndian.PutInt(data, offset, field_13_border_styles1);offset += 4;LittleEndian.PutInt(data, offset, field_14_border_styles2);offset += 4;return 8;}
// Original:
public void decode(byte[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations) {for (int j = 0; j < iterations; ++j) {final byte block = blocks[blocksOffset++];values[valuesOffset++] = (block >>> 7) & 1;values[valuesOffset++] = (block >>> 6) & 1;values[valuesOffset++] = (block >>> 5) & 1;values[valuesOffset++] = (block >>> 4) & 1;values[valuesOffset++] = (block >>> 3) & 1;values[valuesOffset++] = (block >>> 2) & 1;values[valuesOffset++] = (block >>> 1) & 1;values[valuesOffset++] = block & 1;}}

// Translation:
public override void Decode(byte[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations){for (int j = 0; j < iterations; ++j){var block = blocks[blocksOffset++];values[valuesOffset++] = ((int)((uint)block >> 7)) & 1;values[valuesOffset++] = ((int)((uint)block >> 6)) & 1;values[valuesOffset++] = ((int)((uint)block >> 5)) & 1;values[valuesOffset++] = ((int)((uint)block >> 4)) & 1;values[valuesOffset++] = ((int)((uint)block >> 3)) & 1;values[valuesOffset++] = ((int)((uint)block >> 2)) & 1;values[valuesOffset++] = ((int)((uint)block >> 1)) & 1;values[valuesOffset++] = block & 1;}}
// Original:
public PipedWriter(PipedReader destination) throws IOException {super(destination);connect(destination);}

// Translation:
public PipedWriter(java.io.PipedReader destination) : base(destination){throw new System.NotImplementedException();}
// Original:
public String dequote(byte[] in, int ip, int ie) {boolean inquote = false;final byte[] r = new byte[ie - ip];int rPtr = 0;while (ip < ie) {final byte b = in[ip++];switch (b) {case '\'':inquote = !inquote;continue;case '\\':if (inquote || ip == ie)r[rPtr++] = b; elser[rPtr++] = in[ip++];continue;default:r[rPtr++] = b;continue;}}return RawParseUtils.decode(UTF_8, r, 0, rPtr);}

// Translation:
public override string Dequote(byte[] @in, int ip, int ie){bool inquote = false;byte[] r = new byte[ie - ip];int rPtr = 0;while (ip < ie){byte b = @in[ip++];switch (b){case (byte)('\''):{inquote = !inquote;continue;goto case (byte)('\\');}case (byte)('\\'):{if (inquote || ip == ie){r[rPtr++] = b;}else{r[rPtr++] = @in[ip++];}continue;goto default;}default:{r[rPtr++] = b;continue;break;}}}return RawParseUtils.Decode(Constants.CHARSET, r, 0, rPtr);}
// Original:
public Status getStatus() {return myStatus;}

// Translation:
public virtual CheckoutResult.Status GetStatus(){return myStatus;}
// Original:
public DeltaRecord(RecordInputStream in) {field_1_max_change = in.readDouble();}

// Translation:
public DeltaRecord(RecordInputStream in1){field_1_max_change = in1.ReadDouble();}
// Original:
public void serialize(LittleEndianOutput out) {out.writeShort(getCount());}

// Translation:
public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(Count);}
// Original:
public ListPartsRequest(String vaultName, String uploadId) {setVaultName(vaultName);setUploadId(uploadId);}

// Translation:
public ListPartsRequest(string vaultName, string uploadId){_vaultName = vaultName;_uploadId = uploadId;}
// Original:
public void set(int index, long value) {final int o = index >>> 2;final int b = index & 3;final int shift = b << 4;blocks[o] = (blocks[o] & ~(65535L << shift)) | (value << shift);}

// Translation:
public override void Set(int index, long value){int o = (int)((uint)index >> 2);int b = index & 3;int shift = b << 4;blocks[o] = (blocks[o] & ~(65535L << shift)) | (value << shift);}
// Original:
public void setRunInBackground(int deltaPri) {runInBackground = true;this.deltaPri = deltaPri;}

// Translation:
public virtual void SetRunInBackground(int deltaPri){runInBackground = true;this.deltaPri = deltaPri;}
// Original:
public TeeInputStream(InputStream src, OutputStream dst) {this.src = src;this.dst = dst;}

// Translation:
public TeeInputStream(InputStream src, OutputStream dst){this.src = src;this.dst = dst;}
// Original:
public void addChild(final Property property)throws IOException{String name = property.getName();if (_children_names.contains(name)){throw new IOException("Duplicate name \"" + name + "\"");}_children_names.add(name);_children.add(property);}

// Translation:
public void AddChild(Property property){String name = property.Name;if (_children_names.Contains(name)){throw new IOException("Duplicate name \"" + name + "\"");}_children_names.Add(name);_children.Add(property);}
// Original:
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0) {int result;if (arg0 instanceof TwoDEval) {result = ((TwoDEval) arg0).getWidth();} else if (arg0 instanceof RefEval) {result = 1;} else { return ErrorEval.VALUE_INVALID;}return new NumberEval(result);}

// Translation:
public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0){int result;if (arg0 is AreaEval){result = ((AreaEval)arg0).Width;}else if (arg0 is RefEval){result = 1;}else{ return ErrorEval.VALUE_INVALID;}return new NumberEval(result);}