yijunyu/c-to-rust huggingface dataset:
// Original:
public SendMessageResult sendMessage(String queueUrl, String messageBody) {return sendMessage(new SendMessageRequest().withQueueUrl(queueUrl).withMessageBody(messageBody));}

// Translation:
public virtual SendMessageResponse SendMessage(string queueUrl, string messageBody){var request = new SendMessageRequest();request.QueueUrl = queueUrl;request.MessageBody = messageBody;return SendMessage(request);}
// Original:
public static double getExcelDate(Date date) {return getExcelDate(date, false);}

// Translation:
public static double GetExcelDate(DateTime date){return GetExcelDate(date, false);}
// Original:
public String toString() {return markedUpText.subSequence(textStartPos, textEndPos).toString();}

// Translation:
public override string ToString(){return markedUpText.ToString(TextStartPos, TextEndPos - TextStartPos);}
// Original:
public ModifyInstancePlacementResult modifyInstancePlacement(ModifyInstancePlacementRequest request) {request = beforeClientExecution(request);return executeModifyInstancePlacement(request);}

// Translation:
public virtual ModifyInstancePlacementResponse ModifyInstancePlacement(ModifyInstancePlacementRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyInstancePlacementRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyInstancePlacementResponseUnmarshaller.Instance;return Invoke<ModifyInstancePlacementResponse>(request, options);}
// Original:
public static String replaceOccupiedParameters(String url, Map<String, String> paths) {String result = url;for (Map.Entry<String, String> entry : paths.entrySet()) {String key = entry.getKey();String value = entry.getValue();String target = "[" + key + "]";result = result.replace(target, value);}return result;}

// Translation:
public static string ReplaceOccupiedParameters(string url, Dictionary<string, string> paths){var result = url;foreach (var entry in paths){var key = entry.Key;var value = entry.Value;var target = "[" + key + "]";result = result.Replace(target, value);}return result;}
// Original:
public String toString() {return "<matchAllDocs field='*' term='*'/>";}

// Translation:
public override string ToString(){return "<matchAllDocs field='*' term='*'/>";}
// Original:
public DeleteMetricFilterRequest(String logGroupName, String filterName) {setLogGroupName(logGroupName);setFilterName(filterName);}

// Translation:
public DeleteMetricFilterRequest(string logGroupName, string filterName){_logGroupName = logGroupName;_filterName = filterName;}
// Original:
public char readChar() throws IOException {return primitiveTypes.readChar();}

// Translation:
public virtual char readChar(){throw new System.NotImplementedException();}
// Original:
public DescribeInstanceStatusResult describeInstanceStatus(DescribeInstanceStatusRequest request) {request = beforeClientExecution(request);return executeDescribeInstanceStatus(request);}

// Translation:
public virtual DescribeInstanceStatusResponse DescribeInstanceStatus(DescribeInstanceStatusRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeInstanceStatusRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeInstanceStatusResponseUnmarshaller.Instance;return Invoke<DescribeInstanceStatusResponse>(request, options);}
// Original:
public BatchDeleteAttributesResult batchDeleteAttributes(BatchDeleteAttributesRequest request) {request = beforeClientExecution(request);return executeBatchDeleteAttributes(request);}

// Translation:
public virtual BatchDeleteAttributesResponse BatchDeleteAttributes(BatchDeleteAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchDeleteAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchDeleteAttributesResponseUnmarshaller.Instance;return Invoke<BatchDeleteAttributesResponse>(request, options);}
// Original:
public String toString() {return "<fieldconfig name=\"" + this.fieldName + "\" configurations=\""+ super.toString() + "\"/>";}

// Translation:
public override string ToString(){return "<fieldconfig name=\"" + this.fieldName + "\" configurations=\""+ base.ToString() + "\"/>";}
// Original:
public ListDeploymentGroupsResult listDeploymentGroups(ListDeploymentGroupsRequest request) {request = beforeClientExecution(request);return executeListDeploymentGroups(request);}

// Translation:
public virtual ListDeploymentGroupsResponse ListDeploymentGroups(ListDeploymentGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDeploymentGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDeploymentGroupsResponseUnmarshaller.Instance;return Invoke<ListDeploymentGroupsResponse>(request, options);}
// Original:
public CellGeneralFormatter() {this(LocaleUtil.getUserLocale());}

// Translation:
public CellGeneralFormatter(): base("General"){;}
// Original:
public BloomFilteredTerms(Terms terms, FuzzySet filter) {this.delegateTerms = terms;this.filter = filter;}

// Translation:
public BloomFilteredTerms(Terms terms, FuzzySet filter){_delegateTerms = terms;_filter = filter;}
// Original:
public int numBits(int idx) {return bytes[idx].bits;}

// Translation:
public virtual int NumBits(int idx){return bytes[idx].Bits;}
// Original:
public boolean equals(Object obj) {if (obj == this) {return true;}else if (!(obj instanceof LexerChannelAction)) {return false;}return channel == ((LexerChannelAction)obj).channel;}

// Translation:
public override bool Equals(object obj){if (obj == this){return true;}else{if (!(obj is Antlr4.Runtime.Atn.LexerChannelAction)){return false;}}return channel == ((Antlr4.Runtime.Atn.LexerChannelAction)obj).channel;}
// Original:
public void write(LittleEndianOutput out) {out.writeByte(sid + getPtgClass());out.writeShort(getValue());}

// Translation:
public override void Write(ILittleEndianOutput out1){out1.WriteByte(sid + PtgClass);out1.WriteShort(Value);}
// Original:
public ExecuteChangeSetResult executeChangeSet(ExecuteChangeSetRequest request) {request = beforeClientExecution(request);return executeExecuteChangeSet(request);}

// Translation:
public virtual ExecuteChangeSetResponse ExecuteChangeSet(ExecuteChangeSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = ExecuteChangeSetRequestMarshaller.Instance;options.ResponseUnmarshaller = ExecuteChangeSetResponseUnmarshaller.Instance;return Invoke<ExecuteChangeSetResponse>(request, options);}
// Original:
public StartInstanceResult startInstance(StartInstanceRequest request) {request = beforeClientExecution(request);return executeStartInstance(request);}

// Translation:
public virtual StartInstanceResponse StartInstance(StartInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = StartInstanceResponseUnmarshaller.Instance;return Invoke<StartInstanceResponse>(request, options);}
// Original:
public CapitalizationFilterFactory(Map<String, String> args) {super(args);boolean ignoreCase = getBoolean(args, KEEP_IGNORE_CASE, false);Set<String> k = getSet(args, KEEP);if (k != null) {keep = new CharArraySet(10, ignoreCase);keep.addAll(k);}k = getSet(args, OK_PREFIX);if (k != null) {okPrefix = new ArrayList<>();for (String item : k) {okPrefix.add(item.toCharArray());}}minWordLength = getInt(args, MIN_WORD_LENGTH, 0);maxWordCount = getInt(args, MAX_WORD_COUNT, CapitalizationFilter.DEFAULT_MAX_WORD_COUNT);maxTokenLength = getInt(args, MAX_TOKEN_LENGTH, CapitalizationFilter.DEFAULT_MAX_TOKEN_LENGTH);onlyFirstWord = getBoolean(args, ONLY_FIRST_WORD, true);forceFirstLetter = getBoolean(args, FORCE_FIRST_LETTER, true);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}

// Translation:
public CapitalizationFilterFactory(IDictionary<string, string> args): base(args){AssureMatchVersion();bool ignoreCase = GetBoolean(args, KEEP_IGNORE_CASE, false);ICollection<string> k = GetSet(args, KEEP);if (k != null){keep = new CharArraySet(m_luceneMatchVersion, 10, ignoreCase);keep.UnionWith(k);}k = GetSet(args, OK_PREFIX);if (k != null){okPrefix = new List<char[]>();foreach (string item in k){okPrefix.Add(item.ToCharArray());}}minWordLength = GetInt32(args, MIN_WORD_LENGTH, 0);maxWordCount = GetInt32(args, MAX_WORD_COUNT, CapitalizationFilter.DEFAULT_MAX_WORD_COUNT);maxTokenLength = GetInt32(args, MAX_TOKEN_LENGTH, CapitalizationFilter.DEFAULT_MAX_TOKEN_LENGTH);onlyFirstWord = GetBoolean(args, ONLY_FIRST_WORD, true);forceFirstLetter = GetBoolean(args, FORCE_FIRST_LETTER, true);culture = GetCulture(args, CULTURE, null);if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
// Original:
public static long[] copyOf(long[] original, int newLength) {if (newLength < 0) {throw new NegativeArraySizeException();}return copyOfRange(original, 0, newLength);}

// Translation:
public static long[] copyOf(long[] original, int newLength){if (newLength < 0){throw new java.lang.NegativeArraySizeException();}return copyOfRange(original, 0, newLength);}
// Original:
public String toString() {return ref.toString();}

// Translation:
public override string ToString(){return this.@ref.ToString();}
// Original:
public ListNetworksResult listNetworks(ListNetworksRequest request) {request = beforeClientExecution(request);return executeListNetworks(request);}

// Translation:
public virtual ListNetworksResponse ListNetworks(ListNetworksRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListNetworksRequestMarshaller.Instance;options.ResponseUnmarshaller = ListNetworksResponseUnmarshaller.Instance;return Invoke<ListNetworksResponse>(request, options);}
// Original:
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0) {ValueEval arg = arg0;if (arg instanceof RefEval) {RefEval re = (RefEval)arg;arg = re.getInnerValueEval(re.getFirstSheetIndex());} else if (arg instanceof AreaEval) {arg = ((AreaEval) arg).getRelativeValue(0, 0);}if (arg instanceof StringEval) {return arg;}if (arg instanceof ErrorEval) {return arg;}return StringEval.EMPTY_INSTANCE;}

// Translation:
public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0){ValueEval arg = arg0;if (arg is RefEval){RefEval re = (RefEval)arg;arg = re.GetInnerValueEval(re.FirstSheetIndex);}else if (arg is AreaEval){arg = ((AreaEval)arg).GetRelativeValue(0, 0);}if (arg is StringEval){return arg;}if (arg is ErrorEval){return arg;}return StringEval.EMPTY_INSTANCE;}
// Original:
public StopNotebookInstanceResult stopNotebookInstance(StopNotebookInstanceRequest request) {request = beforeClientExecution(request);return executeStopNotebookInstance(request);}

// Translation:
public virtual StopNotebookInstanceResponse StopNotebookInstance(StopNotebookInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopNotebookInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = StopNotebookInstanceResponseUnmarshaller.Instance;return Invoke<StopNotebookInstanceResponse>(request, options);}
// Original:
public void applyFont(int startIndex, int endIndex, short fontIndex) {if (startIndex > endIndex)throw new IllegalArgumentException("Start index must be less than end index.");if (startIndex < 0 || endIndex > length())throw new IllegalArgumentException("Start and end index not in range.");if (startIndex == endIndex)return;short currentFont = NO_FONT;if (endIndex != length()) {currentFont = this.getFontAtIndex(endIndex);}_string = cloneStringIfRequired();Iterator<FormatRun> formatting = _string.formatIterator();if (formatting != null) {while (formatting.hasNext()) {FormatRun r = formatting.next();if ((r.getCharacterPos() >= startIndex) && (r.getCharacterPos() < endIndex))formatting.remove();}}_string.addFormatRun(new FormatRun((short)startIndex, fontIndex));if (endIndex != length())_string.addFormatRun(new FormatRun((short)endIndex, currentFont));addToSSTIfRequired();}

// Translation:
public void ApplyFont(int startIndex, int endIndex, short fontIndex){if (startIndex > endIndex)throw new ArgumentException("Start index must be less than end index.");if (startIndex < 0 || endIndex > Length)throw new ArgumentException("Start and end index not in range.");if (startIndex == endIndex)return;short currentFont = NO_FONT;if (endIndex != Length){currentFont = this.GetFontAtIndex(endIndex);}_string = CloneStringIfRequired();System.Collections.Generic.List<UnicodeString.FormatRun> formatting = _string.FormatIterator();ArrayList deletedFR = new ArrayList();if (formatting != null){IEnumerator<UnicodeString.FormatRun> formats = formatting.GetEnumerator();while (formats.MoveNext()){UnicodeString.FormatRun r = formats.Current;if ((r.CharacterPos >= startIndex) && (r.CharacterPos < endIndex)){deletedFR.Add(r);}}}foreach (UnicodeString.FormatRun fr in deletedFR){_string.RemoveFormatRun(fr);}_string.AddFormatRun(new UnicodeString.FormatRun((short)startIndex, fontIndex));if (endIndex != Length)_string.AddFormatRun(new UnicodeString.FormatRun((short)endIndex, currentFont));AddToSSTIfRequired();}
// Original:
public int readInt() throws IOException {return primitiveTypes.readInt();}

// Translation:
public virtual int readInt(){throw new System.NotImplementedException();}
// Original:
public Iterable<RevCommit> call() throws GitAPIException, NoHeadException {checkCallable();List<TreeFilter> filters = new ArrayList<>();if (!pathFilters.isEmpty()) {filters.add(AndTreeFilter.create(PathFilterGroup.create(pathFilters), TreeFilter.ANY_DIFF));}if (!excludeTreeFilters.isEmpty()) {for (TreeFilter f : excludeTreeFilters) {filters.add(AndTreeFilter.create(f, TreeFilter.ANY_DIFF));}}if (!filters.isEmpty()) {if (filters.size() == 1) {filters.add(TreeFilter.ANY_DIFF);}walk.setTreeFilter(AndTreeFilter.create(filters));}if (skip > -1 && maxCount > -1)walk.setRevFilter(AndRevFilter.create(SkipRevFilter.create(skip),MaxCountRevFilter.create(maxCount)));else if (skip > -1)walk.setRevFilter(SkipRevFilter.create(skip));else if (maxCount > -1)walk.setRevFilter(MaxCountRevFilter.create(maxCount));if (!startSpecified) {try {ObjectId headId = repo.resolve(Constants.HEAD);if (headId == null)throw new NoHeadException(JGitText.get().noHEADExistsAndNoExplicitStartingRevisionWasSpecified);add(headId);} catch (IOException e) {throw new JGitInternalException(JGitText.get().anExceptionOccurredWhileTryingToAddTheIdOfHEAD,e);}}if (this.revFilter != null) {walk.setRevFilter(this.revFilter);}setCallable(false);return walk;}

// Translation:
public override Iterable<RevCommit> Call(){CheckCallable();if (pathFilters.Count > 0){walk.SetTreeFilter(AndTreeFilter.Create(PathFilterGroup.Create(pathFilters), TreeFilter.ANY_DIFF));}if (skip > -1 && maxCount > -1){walk.SetRevFilter(AndRevFilter.Create(SkipRevFilter.Create(skip), MaxCountRevFilter.Create(maxCount)));}else{if (skip > -1){walk.SetRevFilter(SkipRevFilter.Create(skip));}else{if (maxCount > -1){walk.SetRevFilter(MaxCountRevFilter.Create(maxCount));}}}if (!startSpecified){try{ObjectId headId = repo.Resolve(Constants.HEAD);if (headId == null){throw new NoHeadException(JGitText.Get().noHEADExistsAndNoExplicitStartingRevisionWasSpecified);}Add(headId);}catch (IOException e){throw new JGitInternalException(JGitText.Get().anExceptionOccurredWhileTryingToAddTheIdOfHEAD, e);}}SetCallable(false);return walk;}
// Original:
public HyphenationCompoundWordTokenFilterFactory(Map<String, String> args) {super(args);dictFile = get(args, "dictionary");encoding = get(args, "encoding");hypFile = require(args, "hyphenator");minWordSize = getInt(args, "minWordSize", CompoundWordTokenFilterBase.DEFAULT_MIN_WORD_SIZE);minSubwordSize = getInt(args, "minSubwordSize", CompoundWordTokenFilterBase.DEFAULT_MIN_SUBWORD_SIZE);maxSubwordSize = getInt(args, "maxSubwordSize", CompoundWordTokenFilterBase.DEFAULT_MAX_SUBWORD_SIZE);onlyLongestMatch = getBoolean(args, "onlyLongestMatch", false);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}

// Translation:
public HyphenationCompoundWordTokenFilterFactory(IDictionary<string, string> args) : base(args){AssureMatchVersion();dictFile = Get(args, "dictionary");encoding = Get(args, "encoding");hypFile = Require(args, "hyphenator");minWordSize = GetInt32(args, "minWordSize", CompoundWordTokenFilterBase.DEFAULT_MIN_WORD_SIZE);minSubwordSize = GetInt32(args, "minSubwordSize", CompoundWordTokenFilterBase.DEFAULT_MIN_SUBWORD_SIZE);maxSubwordSize = GetInt32(args, "maxSubwordSize", CompoundWordTokenFilterBase.DEFAULT_MAX_SUBWORD_SIZE);onlyLongestMatch = GetBoolean(args, "onlyLongestMatch", false);if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
// Original:
public DeleteTerminologyResult deleteTerminology(DeleteTerminologyRequest request) {request = beforeClientExecution(request);return executeDeleteTerminology(request);}

// Translation:
public virtual DeleteTerminologyResponse DeleteTerminology(DeleteTerminologyRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteTerminologyRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteTerminologyResponseUnmarshaller.Instance;return Invoke<DeleteTerminologyResponse>(request, options);}
// Original:
public boolean remove(Object o) {if (!(o instanceof Entry))return false;Entry<?, ?> e = (Entry<?, ?>)o;return removeMapping(e.getKey(), e.getValue());}

// Translation:
public override bool remove(object o){if (!(o is java.util.MapClass.Entry<K, V>)){return false;}java.util.MapClass.Entry<object, object> e = (java.util.MapClass.Entry<object, object>)o;return this._enclosing.removeMapping(e.getKey(), e.getValue());}
// Original:
public GetObjectAttributesResult getObjectAttributes(GetObjectAttributesRequest request) {request = beforeClientExecution(request);return executeGetObjectAttributes(request);}

// Translation:
public virtual GetObjectAttributesResponse GetObjectAttributes(GetObjectAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetObjectAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetObjectAttributesResponseUnmarshaller.Instance;return Invoke<GetObjectAttributesResponse>(request, options);}
// Original:
public RevWalk getRevWalk() {throw new UnsupportedOperationException(MessageFormat.format(JGitText.get().isAStaticFlagAndHasNorevWalkInstance, toString()));}

// Translation:
public override RevWalk GetRevWalk(){throw new NotSupportedException(MessageFormat.Format(JGitText.Get().isAStaticFlagAndHasNorevWalkInstance, ToString()));}
// Original:
public DescribeKeyPairsResult describeKeyPairs(DescribeKeyPairsRequest request) {request = beforeClientExecution(request);return executeDescribeKeyPairs(request);}

// Translation:
public virtual DescribeKeyPairsResponse DescribeKeyPairs(DescribeKeyPairsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeKeyPairsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeKeyPairsResponseUnmarshaller.Instance;return Invoke<DescribeKeyPairsResponse>(request, options);}
// Original:
public byte[] toByteArray() {return build();}

// Translation:
public virtual byte[] ToByteArray(){return Build();}
// Original:
public void setIndexVersion(int version) {indexVersion = version;}

// Translation:
public virtual void SetIndexVersion(int version){indexVersion = version;}
// Original:
public IgnoreNode() {rules = new ArrayList<>();}

// Translation:
public IgnoreNode(){rules = new AList<IgnoreRule>();}
// Original:
public TreeFilter negate() {return NotTreeFilter.create(this);}

// Translation:
public virtual TreeFilter Negate(){return NotTreeFilter.Create(this);}
// Original:
public long ramBytesUsed() {return docs.ramBytesUsed()+ RamUsageEstimator.NUM_BYTES_OBJECT_HEADER+ 2 * Integer.BYTES+ 2 + Long.BYTES+ RamUsageEstimator.NUM_BYTES_OBJECT_REF;}

// Translation:
public long RamBytesUsed(){return RamUsageEstimator.AlignObjectSize(3 * RamUsageEstimator.NUM_BYTES_OBJECT_REF + 2 * RamUsageEstimator.NUM_BYTES_INT32)+ RamUsageEstimator.SizeOf(data)+ positions.RamBytesUsed()+ wordNums.RamBytesUsed();}
// Original:
public String toString() {return exists() ? toObject().toString() : "(null)";}

// Translation:
public override string ToString(){return Exists ? ToObject().ToString() : "(null)";}
// Original:
public int available() throws IOException {checkReadPrimitiveTypes();return primitiveData.available();}

// Translation:
public override int available(){throw new System.NotImplementedException();}
// Original:
public UnicodeMapping(String pEntityName, String pResolvedValue) {entityName = "&" + pEntityName + ";";resolvedValue = pResolvedValue;}

// Translation:
public UnicodeMapping(String pEntityName, String pResolvedValue){entityName = "&" + pEntityName + ";";resolvedValue = pResolvedValue;}
// Original:
public final void removeBreak(int main) {Integer rowKey = Integer.valueOf(main);Break region = _breakMap.get(rowKey);_breaks.remove(region);_breakMap.remove(rowKey);}

// Translation:
public void RemoveBreak(int main){int rowKey = main;Break region = (Break)_breakMap[rowKey];_breaks.Remove(region);_breakMap.Remove(rowKey);}
// Original:
public void sort(int from, int to) {checkRange(from, to);if (to - from <= 1) {return;}reset(from, to);do {ensureInvariants();pushRunLen(nextRun());} while (runEnd(0) < to);exhaustStack();assert runEnd(0) == to;}

// Translation:
public override void Sort(int from, int to){CheckRange(from, to);if (to - from <= 1){return;}Reset(from, to);do{EnsureInvariants();PushRunLen(NextRun());} while (RunEnd(0) < to);ExhaustStack();Debug.Assert(RunEnd(0) == to);}
// Original:
public File getDirectory() {return directory;}

// Translation:
public virtual FilePath GetDirectory(){return directory;}
// Original:
public PositionTrackingVisitor(RecordVisitor rv, int initialPosition) {_rv = rv;_position = initialPosition;}

// Translation:
public PositionTrackingVisitor(RecordVisitor rv, int initialPosition){_rv = rv;_position = initialPosition;}
// Original:
public T top() {return top;}

// Translation:
public T Top(){return top;}
// Original:
public String toString() {StringBuilder sb = new StringBuilder();sb.append(getClass().getName());sb.append(" [");if (externalWorkbookNumber >= 0) {sb.append(" [");sb.append("workbook=").append(getExternalWorkbookNumber());sb.append("] ");}sb.append("sheet=").append(getSheetName());if (lastSheetName != null) {sb.append(" : ");sb.append("sheet=").append(lastSheetName);}sb.append(" ! ");sb.append(formatReferenceAsString());sb.append("]");return sb.toString();}

// Translation:
public override String ToString(){StringBuilder sb = new StringBuilder();sb.Append(this.GetType().Name);sb.Append(" [");if (externalWorkbookNumber >= 0){sb.Append(" [");sb.Append("workbook=").Append(ExternalWorkbookNumber);sb.Append("] ");}sb.Append("sheet=").Append(SheetName);if (lastSheetName != null){sb.Append(" : ");sb.Append("sheet=").Append(lastSheetName);}sb.Append(" ! ");sb.Append(FormatReferenceAsString());sb.Append("]");return sb.ToString();}
// Original:
public SubmoduleSyncCommand addPath(String path) {paths.add(path);return this;}

// Translation:
public virtual NGit.Api.SubmoduleSyncCommand AddPath(string path){paths.AddItem(path);return this;}
// Original:
@Override public int size() {return map.size();}

// Translation:
public override int size(){return this._enclosing._size;}
// Original:
public DeleteNamespaceRequest() {super("cr", "2016-06-07", "DeleteNamespace", "cr");setUriPattern("/namespace/[Namespace]");setMethod(MethodType.DELETE);}

// Translation:
public DeleteNamespaceRequest(): base("cr", "2016-06-07", "DeleteNamespace", "cr", "openAPI"){UriPattern = "/namespace/[Namespace]";Method = MethodType.DELETE;}
// Original:
public GeoRestriction(GeoRestrictionType restrictionType) {setRestrictionType(restrictionType.toString());}

// Translation:
public GeoRestriction(GeoRestrictionType restrictionType){_restrictionType = restrictionType;}
// Original:
public RecognizeEntityRequest() {super("visionai-poc", "2020-04-08", "RecognizeEntity");setMethod(MethodType.POST);}

// Translation:
public RecognizeEntityRequest(): base("visionai-poc", "2020-04-08", "RecognizeEntity"){Method = MethodType.POST;}