yijunyu/c-to-rust huggingface dataset:
// Original:
public UpdateAuthorizerResult updateAuthorizer(UpdateAuthorizerRequest request) {request = beforeClientExecution(request);return executeUpdateAuthorizer(request);}

// Translation:
public virtual UpdateAuthorizerResponse UpdateAuthorizer(UpdateAuthorizerRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateAuthorizerRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateAuthorizerResponseUnmarshaller.Instance;return Invoke<UpdateAuthorizerResponse>(request, options);}
// Original:
public int ordVal(int doc) throws IOException {throw new UnsupportedOperationException();}

// Translation:
public virtual int OrdVal(int doc){throw new System.NotSupportedException();}
// Original:
public UnknownRecord(RecordInputStream in) {_sid = in.getSid();_rawData = in.readRemainder();}

// Translation:
public UnknownRecord(RecordInputStream in1){_sid = in1.Sid;_rawData = in1.ReadRemainder();}
// Original:
public Matcher reset() {return reset(input, 0, input.length());}

// Translation:
public java.util.regex.Matcher reset(){return reset(java.lang.CharSequenceProxy.Wrap(input), 0, input.Length);}
// Original:
public UpdateApnsVoipSandboxChannelResult updateApnsVoipSandboxChannel(UpdateApnsVoipSandboxChannelRequest request) {request = beforeClientExecution(request);return executeUpdateApnsVoipSandboxChannel(request);}

// Translation:
public virtual UpdateApnsVoipSandboxChannelResponse UpdateApnsVoipSandboxChannel(UpdateApnsVoipSandboxChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateApnsVoipSandboxChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateApnsVoipSandboxChannelResponseUnmarshaller.Instance;return Invoke<UpdateApnsVoipSandboxChannelResponse>(request, options);}
// Original:
public IntervalSet nextTokens(ATNState s, RuleContext ctx) {LL1Analyzer anal = new LL1Analyzer(this);IntervalSet next = anal.LOOK(s, ctx);return next;}

// Translation:
public virtual IntervalSet NextTokens(ATNState s, RuleContext ctx){LL1Analyzer anal = new LL1Analyzer(this);IntervalSet next = anal.Look(s, ctx);return next;}
// Original:
public ListTablesResult listTables(String exclusiveStartTableName, Integer limit) {return listTables(new ListTablesRequest().withExclusiveStartTableName(exclusiveStartTableName).withLimit(limit));}

// Translation:
public virtual ListTablesResponse ListTables(string exclusiveStartTableName, int limit){var request = new ListTablesRequest();request.ExclusiveStartTableName = exclusiveStartTableName;request.Limit = limit;return ListTables(request);}
// Original:
public DescribeIdentityResult describeIdentity(DescribeIdentityRequest request) {request = beforeClientExecution(request);return executeDescribeIdentity(request);}

// Translation:
public virtual DescribeIdentityResponse DescribeIdentity(DescribeIdentityRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeIdentityRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeIdentityResponseUnmarshaller.Instance;return Invoke<DescribeIdentityResponse>(request, options);}
// Original:
final public ArrayList<String> OptionalFields() throws ParseException {Token fieldName;ArrayList<String> fieldNames = null;label_1:while (true) {if (jj_2_1(2)) {;} else {break label_1;}fieldName = jj_consume_token(TERM);jj_consume_token(COLON);if (fieldNames == null) {fieldNames = new ArrayList<String>();}fieldNames.add(fieldName.image);}{if (true) return fieldNames;}throw new Error("Missing return statement in function");}

// Translation:
public IList<string> OptionalFields(){Token fieldName;IList<string> fieldNames = null;while (true){if (Jj_2_1(2)){;}else{goto label_1;}fieldName = Jj_consume_token(RegexpToken.TERM);Jj_consume_token(RegexpToken.COLON);if (fieldNames == null){fieldNames = new List<string>();}fieldNames.Add(fieldName.Image);}label_1:{ if (true) return fieldNames; }throw new Exception("Missing return statement in function");}
// Original:
public SubmoduleAddCommand submoduleAdd() {return new SubmoduleAddCommand(repo);}

// Translation:
public virtual SubmoduleAddCommand SubmoduleAdd(){return new SubmoduleAddCommand(repo);}
// Original:
public DescribeTypeResult describeType(DescribeTypeRequest request) {request = beforeClientExecution(request);return executeDescribeType(request);}

// Translation:
public virtual DescribeTypeResponse DescribeType(DescribeTypeRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTypeRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTypeResponseUnmarshaller.Instance;return Invoke<DescribeTypeResponse>(request, options);}
// Original:
public UpdateCompanyNetworkConfigurationResult updateCompanyNetworkConfiguration(UpdateCompanyNetworkConfigurationRequest request) {request = beforeClientExecution(request);return executeUpdateCompanyNetworkConfiguration(request);}

// Translation:
public virtual UpdateCompanyNetworkConfigurationResponse UpdateCompanyNetworkConfiguration(UpdateCompanyNetworkConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateCompanyNetworkConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateCompanyNetworkConfigurationResponseUnmarshaller.Instance;return Invoke<UpdateCompanyNetworkConfigurationResponse>(request, options);}
// Original:
public final String get(String name) {for (IndexableField field : fields) {if (field.name().equals(name) && field.stringValue() != null) {return field.stringValue();}}return null;}

// Translation:
public string Get(string name){foreach (IIndexableField field in fields){if (field.Name.Equals(name, StringComparison.Ordinal) && field.GetStringValue() != null){return field.GetStringValue();}}return null;}
// Original:
public boolean equalsSameType(Object other) {assert exists || 0 == value.length();MutableValueStr b = (MutableValueStr)other;return value.get().equals(b.value.get()) && exists == b.exists;}

// Translation:
public override bool EqualsSameType(object other){MutableValueStr b = (MutableValueStr)other;return Value.Equals(b.Value) && Exists == b.Exists;}
// Original:
public void read(RecordStream rs) {while (rs.peekNextClass() == MergeCellsRecord.class) {MergeCellsRecord mcr = (MergeCellsRecord) rs.getNext();int nRegions = mcr.getNumAreas();for (int i = 0; i < nRegions; i++) {CellRangeAddress cra = mcr.getAreaAt(i);_mergedRegions.add(cra);}}}

// Translation:
public void Read(RecordStream rs){while (rs.PeekNextClass() == typeof(MergeCellsRecord)){MergeCellsRecord mcr = (MergeCellsRecord)rs.GetNext();int nRegions = mcr.NumAreas;for (int i = 0; i < nRegions; i++){_mergedRegions.Add(mcr.GetAreaAt(i));}}}
// Original:
public int available() throws IOException {return in.available() / 2 + (lastChar == -1 ? 0 : 1);}

// Translation:
public override int available(){throw new System.NotImplementedException();}
// Original:
public Status getStatus() {return status;}

// Translation:
public virtual RemoteRefUpdate.Status GetStatus(){return status;}
// Original:
public CharSequence[] decompose(CharSequence cmd) {int parts = 0;for (int i = 0; 0 <= i && i < cmd.length();) {int next = dashEven(cmd, i);if (i == next) {parts++;i = next + 2;} else {parts++;i = next;}}CharSequence part[] = new CharSequence[parts];int x = 0;for (int i = 0; 0 <= i && i < cmd.length();) {int next = dashEven(cmd, i);if (i == next) {part[x++] = cmd.subSequence(i, i + 2);i = next + 2;} else {part[x++] = (next < 0) ? cmd.subSequence(i, cmd.length()) : cmd.subSequence(i, next);i = next;}}return part;}

// Translation:
public virtual string[] Decompose(string cmd){int parts = 0;for (int i = 0; 0 <= i && i < cmd.Length;){int next = DashEven(cmd, i);if (i == next){parts++;i = next + 2;}else{parts++;i = next;}}string[] part = new string[parts];int x = 0;for (int i = 0; 0 <= i && i < cmd.Length;){int next = DashEven(cmd, i);if (i == next){part[x++] = cmd.Substring(i, 2);i = next + 2;}else{part[x++] = (next < 0) ? cmd.Substring(i, cmd.Length - i) : cmd.Substring(i, next - i);i = next;}}return part;}
// Original:
public RevokeSecurityGroupIngressRequest(String groupName, java.util.List<IpPermission> ipPermissions) {setGroupName(groupName);setIpPermissions(ipPermissions);}

// Translation:
public RevokeSecurityGroupIngressRequest(string groupName, List<IpPermission> ipPermissions){_groupName = groupName;_ipPermissions = ipPermissions;}
// Original:
public Ref remove(Object key) {String name = toRefName((String) key);Ref res = null;int idx;if (0 <= (idx = packed.find(name))) {res = packed.get(name);packed = packed.remove(idx);sizeIsValid = false;}if (0 <= (idx = loose.find(name))) {res = loose.get(name);loose = loose.remove(idx);sizeIsValid = false;}if (0 <= (idx = resolved.find(name))) {res = resolved.get(name);resolved = resolved.remove(idx);sizeIsValid = false;}return res;}

// Translation:
public override Ref Remove(object key){string name = ToRefName((string)key);Ref res = null;int idx;if (0 <= (idx = packed.Find(name))){res = packed.Get(name);packed = packed.Remove(idx);sizeIsValid = false;}if (0 <= (idx = loose.Find(name))){res = loose.Get(name);loose = loose.Remove(idx);sizeIsValid = false;}if (0 <= (idx = resolved.Find(name))){res = resolved.Get(name);resolved = resolved.Remove(idx);sizeIsValid = false;}return res;}
// Original:
public DescribeMLModelsResult describeMLModels(DescribeMLModelsRequest request) {request = beforeClientExecution(request);return executeDescribeMLModels(request);}

// Translation:
public virtual DescribeMLModelsResponse DescribeMLModels(DescribeMLModelsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeMLModelsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeMLModelsResponseUnmarshaller.Instance;return Invoke<DescribeMLModelsResponse>(request, options);}
// Original:
public String getInflectionType(int wordId) {return null; }

// Translation:
public string GetInflectionType(int wordId){return null; }
// Original:
public CreateVolumeRequest(String snapshotId, String availabilityZone) {setSnapshotId(snapshotId);setAvailabilityZone(availabilityZone);}

// Translation:
public CreateVolumeRequest(string availabilityZone, string snapshotId){_availabilityZone = availabilityZone;_snapshotId = snapshotId;}
// Original:
public DataValidationConstraint createDateConstraint(int operatorType, String formula1, String formula2, String dateFormat) {return DVConstraint.createDateConstraint(operatorType, formula1, formula2, dateFormat);}

// Translation:
public IDataValidationConstraint CreateDateConstraint(int operatorType, String formula1, String formula2, String dateFormat){return DVConstraint.CreateDateConstraint(operatorType, formula1, formula2, dateFormat);}
// Original:
public CloneReceiptRuleSetResult cloneReceiptRuleSet(CloneReceiptRuleSetRequest request) {request = beforeClientExecution(request);return executeCloneReceiptRuleSet(request);}

// Translation:
public virtual CloneReceiptRuleSetResponse CloneReceiptRuleSet(CloneReceiptRuleSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = CloneReceiptRuleSetRequestMarshaller.Instance;options.ResponseUnmarshaller = CloneReceiptRuleSetResponseUnmarshaller.Instance;return Invoke<CloneReceiptRuleSetResponse>(request, options);}
// Original:
public int getOffsetGap(String fieldName) {return 1;}

// Translation:
public virtual int GetOffsetGap(string fieldName){return 1;}
// Original:
public long hash1(char c) {final long p = 1099511628211L;long hash = 0xcbf29ce484222325L;hash = (hash ^ (c & 0x00FF)) * p;hash = (hash ^ (c >> 8)) * p;hash += hash << 13;hash ^= hash >> 7;hash += hash << 3;hash ^= hash >> 17;hash += hash << 5;return hash;}

// Translation:
public virtual long Hash1(char c){long p = 1099511628211L;long hash = unchecked((long)0xcbf29ce484222325L);hash = (hash ^ (c & 0x00FF)) * p;hash = (hash ^ (c >> 8)) * p;hash += hash << 13;hash ^= hash >> 7;hash += hash << 3;hash ^= hash >> 17;hash += hash << 5;return hash;}
// Original:
public final ByteBuffer order(ByteOrder byteOrder) {orderImpl(byteOrder);return this;}

// Translation:
public java.nio.ByteBuffer order(java.nio.ByteOrder byteOrder){orderImpl(byteOrder);return this;}
// Original:
public DescribeAlarmsForMetricResult describeAlarmsForMetric(DescribeAlarmsForMetricRequest request) {request = beforeClientExecution(request);return executeDescribeAlarmsForMetric(request);}

// Translation:
public virtual DescribeAlarmsForMetricResponse DescribeAlarmsForMetric(DescribeAlarmsForMetricRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeAlarmsForMetricRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeAlarmsForMetricResponseUnmarshaller.Instance;return Invoke<DescribeAlarmsForMetricResponse>(request, options);}
// Original:
public void terminateWorkflowExecution(TerminateWorkflowExecutionRequest request) {request = beforeClientExecution(request);executeTerminateWorkflowExecution(request);}

// Translation:
public virtual TerminateWorkflowExecutionResponse TerminateWorkflowExecution(TerminateWorkflowExecutionRequest request){var options = new InvokeOptions();options.RequestMarshaller = TerminateWorkflowExecutionRequestMarshaller.Instance;options.ResponseUnmarshaller = TerminateWorkflowExecutionResponseUnmarshaller.Instance;return Invoke<TerminateWorkflowExecutionResponse>(request, options);}
// Original:
public DistanceValueSource(PointVectorStrategy strategy, Point from, double multiplier) {this.strategy = strategy;this.from = from;this.multiplier = multiplier;this.nullValue = 180 * multiplier;}

// Translation:
public DistanceValueSource(PointVectorStrategy strategy, IPoint from, double multiplier){this.strategy = strategy;this.from = from;this.multiplier = multiplier;}
// Original:
public RenameBranchCommand branchRename() {return new RenameBranchCommand(repo);}

// Translation:
public virtual RenameBranchCommand BranchRename(){return new RenameBranchCommand(repo);}
// Original:
public IntBuffer get(int[] dst, int dstOffset, int intCount) {byteBuffer.limit(limit * SizeOf.INT);byteBuffer.position(position * SizeOf.INT);if (byteBuffer instanceof DirectByteBuffer) {((DirectByteBuffer) byteBuffer).get(dst, dstOffset, intCount);} else {((HeapByteBuffer) byteBuffer).get(dst, dstOffset, intCount);}this.position += intCount;return this;}

// Translation:
public override java.nio.IntBuffer get(int[] dst, int dstOffset, int intCount){byteBuffer.limit(_limit * libcore.io.SizeOf.INT);byteBuffer.position(_position * libcore.io.SizeOf.INT);if (byteBuffer is java.nio.DirectByteBuffer){((java.nio.DirectByteBuffer)byteBuffer).get(dst, dstOffset, intCount);}else{((java.nio.HeapByteBuffer)byteBuffer).get(dst, dstOffset, intCount);}this._position += intCount;return this;}
// Original:
public DescribeInstanceEventNotificationAttributesResult describeInstanceEventNotificationAttributes(DescribeInstanceEventNotificationAttributesRequest request) {request = beforeClientExecution(request);return executeDescribeInstanceEventNotificationAttributes(request);}

// Translation:
public virtual DescribeInstanceEventNotificationAttributesResponse DescribeInstanceEventNotificationAttributes(DescribeInstanceEventNotificationAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeInstanceEventNotificationAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeInstanceEventNotificationAttributesResponseUnmarshaller.Instance;return Invoke<DescribeInstanceEventNotificationAttributesResponse>(request, options);}
// Original:
public void appendUserAgent(String key, String value) {this.userAgentConfig.append(key, value);}

// Translation:
public void AppendUserAgent(string key, string value){userAgentConfig.AppendUserAgent(key, value);}
// Original:
public String getErrorDisplay(int c) {String s = String.valueOf((char)c);switch ( c ) {case Token.EOF :s = "<EOF>";break;case '\n' :s = "\\n";break;case '\t' :s = "\\t";break;case '\r' :s = "\\r";break;}return s;}

// Translation:
public virtual string GetErrorDisplay(string s){StringBuilder buf = new StringBuilder();for (var i = 0; i < s.Length; ) {var codePoint = Char.ConvertToUtf32(s, i);buf.Append(GetErrorDisplay(codePoint));i += (codePoint > 0xFFFF) ? 2 : 1;}return buf.ToString();}
// Original:
public String toString() {StringBuilder buffer = new StringBuilder();buffer.append("[CHARTFORMAT]\n");buffer.append("    .xPosition       = ").append(getXPosition()).append("\n");buffer.append("    .yPosition       = ").append(getYPosition()).append("\n");buffer.append("    .width           = ").append(getWidth()).append("\n");buffer.append("    .height          = ").append(getHeight()).append("\n");buffer.append("    .grBit           = ").append(HexDump.intToHex(field5_grbit)).append("\n");buffer.append("[/CHARTFORMAT]\n");return buffer.toString();}

// Translation:
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[CHARTFORMAT]\n");buffer.Append("    .xPosition       = ").Append(XPosition).Append("\n");buffer.Append("    .yPosition       = ").Append(YPosition).Append("\n");buffer.Append("    .width           = ").Append(Width).Append("\n");buffer.Append("    .height          = ").Append(Height).Append("\n");buffer.Append("    .grBit           = ").Append(StringUtil.ToHexString(field5_grbit)).Append("\n");buffer.Append("[/CHARTFORMAT]\n");return buffer.ToString();}
// Original:
public GetQuotaRequest() {super("CloudPhoto", "2017-07-11", "GetQuota", "cloudphoto");setProtocol(ProtocolType.HTTPS);}

// Translation:
public GetQuotaRequest(): base("CloudPhoto", "2017-07-11", "GetQuota", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;}
// Original:
public DeleteEventStreamResult deleteEventStream(DeleteEventStreamRequest request) {request = beforeClientExecution(request);return executeDeleteEventStream(request);}

// Translation:
public virtual DeleteEventStreamResponse DeleteEventStream(DeleteEventStreamRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteEventStreamRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteEventStreamResponseUnmarshaller.Instance;return Invoke<DeleteEventStreamResponse>(request, options);}
// Original:
public GetPhotosRequest() {super("CloudPhoto", "2017-07-11", "GetPhotos", "cloudphoto");setProtocol(ProtocolType.HTTPS);}

// Translation:
public GetPhotosRequest(): base("CloudPhoto", "2017-07-11", "GetPhotos", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;}
// Original:
public int getBegin() {return begin;}

// Translation:
public virtual int GetBegin(){return begin;}
// Original:
public void decRef() throws IOException {if (refCount.get() <= 0) {throw new IllegalStateException("this revision is already released");}final int rc = refCount.decrementAndGet();if (rc == 0) {boolean success = false;try {revision.release();success = true;} finally {if (!success) {refCount.incrementAndGet();}}} else if (rc < 0) {throw new IllegalStateException("too many decRef calls: refCount is " + rc + " after decrement");}}

// Translation:
public virtual void DecRef(){if (refCount <= 0){throw new InvalidOperationException("this revision is already released");}var rc = refCount.DecrementAndGet();if (rc == 0){bool success = false;try{Revision.Release();success = true;}finally{if (!success){refCount.IncrementAndGet();}}}else if (rc < 0){throw new InvalidOperationException(string.Format("too many decRef calls: refCount is {0} after decrement", rc));}}
// Original:
public DescribeDataSetPermissionsResult describeDataSetPermissions(DescribeDataSetPermissionsRequest request) {request = beforeClientExecution(request);return executeDescribeDataSetPermissions(request);}

// Translation:
public virtual DescribeDataSetPermissionsResponse DescribeDataSetPermissions(DescribeDataSetPermissionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDataSetPermissionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDataSetPermissionsResponseUnmarshaller.Instance;return Invoke<DescribeDataSetPermissionsResponse>(request, options);}
// Original:
public SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest() {super("Domain", "2018-01-29", "SaveTaskForUpdatingRegistrantInfoByIdentityCredential");setMethod(MethodType.POST);}

// Translation:
public SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest(): base("Domain-intl", "2017-12-18", "SaveTaskForUpdatingRegistrantInfoByIdentityCredential", "domain", "openAPI"){Method = MethodType.POST;}
// Original:
public TokenStreamToAutomaton() {this.preservePositionIncrements = true;}

// Translation:
public TokenStreamToAutomaton(){this.preservePositionIncrements = true;}
// Original:
public NameXPtg addNameXPtg(String name) {int extBlockIndex = -1;ExternalBookBlock extBlock = null;for (int i = 0; i < _externalBookBlocks.length; i++) {SupBookRecord ebr = _externalBookBlocks[i].getExternalBookRecord();if (ebr.isAddInFunctions()) {extBlock = _externalBookBlocks[i];extBlockIndex = i;break;}}if (extBlock == null) {extBlock = new ExternalBookBlock();extBlockIndex = extendExternalBookBlocks(extBlock);int idx = findFirstRecordLocBySid(ExternSheetRecord.sid);_workbookRecordList.add(idx, extBlock.getExternalBookRecord());_externSheetRecord.addRef(_externalBookBlocks.length - 1, -2, -2);}ExternalNameRecord extNameRecord = new ExternalNameRecord();extNameRecord.setText(name);extNameRecord.setParsedExpression(new Ptg[]{ErrPtg.REF_INVALID});int nameIndex = extBlock.addExternalName(extNameRecord);int supLinkIndex = 0;for (org.apache.poi.hssf.record.Record record : _workbookRecordList.getRecords()) {if (record instanceof SupBookRecord && ((SupBookRecord) record).isAddInFunctions()) {break;}supLinkIndex++;}int numberOfNames = extBlock.getNumberOfNames();_workbookRecordList.add(supLinkIndex + numberOfNames, extNameRecord);int fakeSheetIdx = -2; int ix = _externSheetRecord.getRefIxForSheet(extBlockIndex, fakeSheetIdx, fakeSheetIdx);return new NameXPtg(ix, nameIndex);}

// Translation:
public NameXPtg AddNameXPtg(String name){int extBlockIndex = -1;ExternalBookBlock extBlock = null;for (int i = 0; i < _externalBookBlocks.Length; i++){SupBookRecord ebr = _externalBookBlocks[i].GetExternalBookRecord();if (ebr.IsAddInFunctions){extBlock = _externalBookBlocks[i];extBlockIndex = i;break;}}if (extBlock == null){extBlock = new ExternalBookBlock();extBlockIndex = ExtendExternalBookBlocks(extBlock);int idx = FindFirstRecordLocBySid(ExternSheetRecord.sid);_workbookRecordList.Add(idx, extBlock.GetExternalBookRecord());_externSheetRecord.AddRef(_externalBookBlocks.Length - 1, -2, -2);}ExternalNameRecord extNameRecord = new ExternalNameRecord();extNameRecord.Text = (name);extNameRecord.SetParsedExpression(new Ptg[] { ErrPtg.REF_INVALID });int nameIndex = extBlock.AddExternalName(extNameRecord);int supLinkIndex = 0;for (IEnumerator iterator = _workbookRecordList.GetEnumerator(); iterator.MoveNext(); supLinkIndex++){Record record = (Record)iterator.Current;if (record is SupBookRecord){if (((SupBookRecord)record).IsAddInFunctions) break;}}int numberOfNames = extBlock.NumberOfNames;_workbookRecordList.Add(supLinkIndex + numberOfNames, extNameRecord);int fakeSheetIdx = -2; int ix = _externSheetRecord.GetRefIxForSheet(extBlockIndex, fakeSheetIdx, fakeSheetIdx);return new NameXPtg(ix, nameIndex);}
// Original:
public static IndexReaderContext getTopLevelContext(IndexReaderContext context) {while (context.parent != null) {context = context.parent;}return context;}

// Translation:
public static IndexReaderContext GetTopLevelContext(IndexReaderContext context){while (context.Parent != null){context = context.Parent;}return context;}
// Original:
public final CharBuffer put(CharBuffer src) {throw new ReadOnlyBufferException();}

// Translation:
public override java.nio.CharBuffer put(char c){throw new java.nio.ReadOnlyBufferException();}
// Original:
public DeleteLabelsResult deleteLabels(DeleteLabelsRequest request) {request = beforeClientExecution(request);return executeDeleteLabels(request);}

// Translation:
public virtual DeleteLabelsResponse DeleteLabels(DeleteLabelsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteLabelsRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteLabelsResponseUnmarshaller.Instance;return Invoke<DeleteLabelsResponse>(request, options);}