yijunyu/c-to-rust huggingface dataset:
// Original:
public History getWorkflowExecutionHistory(GetWorkflowExecutionHistoryRequest request) {request = beforeClientExecution(request);return executeGetWorkflowExecutionHistory(request);}

// Translation:
public virtual GetWorkflowExecutionHistoryResponse GetWorkflowExecutionHistory(GetWorkflowExecutionHistoryRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetWorkflowExecutionHistoryRequestMarshaller.Instance;options.ResponseUnmarshaller = GetWorkflowExecutionHistoryResponseUnmarshaller.Instance;return Invoke<GetWorkflowExecutionHistoryResponse>(request, options);}
// Original:
public DeleteFileSystemPolicyResult deleteFileSystemPolicy(DeleteFileSystemPolicyRequest request) {request = beforeClientExecution(request);return executeDeleteFileSystemPolicy(request);}

// Translation:
public virtual DeleteFileSystemPolicyResponse DeleteFileSystemPolicy(DeleteFileSystemPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteFileSystemPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteFileSystemPolicyResponseUnmarshaller.Instance;return Invoke<DeleteFileSystemPolicyResponse>(request, options);}
// Original:
public ValueEval evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex) {switch (args.length) {case 1:return evaluate(srcRowIndex, srcColumnIndex, args[0]);case 0:return new NumberEval(srcColumnIndex+1);}return ErrorEval.VALUE_INVALID;}

// Translation:
public ValueEval Evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex){switch (args.Length){case 1:return Evaluate(srcRowIndex, srcColumnIndex, args[0]);case 0:return new NumberEval(srcColumnIndex + 1);}return ErrorEval.VALUE_INVALID;}
// Original:
public String getFormat(short index) {if (_movedBuiltins) {return _formats.get(index);}if(index == -1) {return null;}String fmt = _formats.size() > index ? _formats.get(index) : null;if (_builtinFormats.length > index && _builtinFormats[index] != null) {if (fmt != null) {return fmt;} else {return _builtinFormats[index];}}return fmt;}

// Translation:
public String GetFormat(short index){if (movedBuiltins)return (String)formats[index];if (index == -1)return null;String fmt = formats.Count > index ? formats[index] : null;if (builtinFormats.Count > index&& builtinFormats[index] != null){if (fmt != null){return fmt;}else{return builtinFormats[index];}}return fmt;}
// Original:
public boolean include(RevWalk walker, RevCommit cmit)throws StopWalkException, MissingObjectException,IncorrectObjectTypeException, IOException {count++;if (count > maxCount)throw StopWalkException.INSTANCE;return true;}

// Translation:
public override bool Include(RevWalk walker, RevCommit cmit){count++;if (count > maxCount){throw StopWalkException.INSTANCE;}return true;}
// Original:
public final Buffer mark() {mark = position;return this;}

// Translation:
public java.nio.Buffer mark(){_mark = _position;return this;}
// Original:
public ModifyClientPropertiesResult modifyClientProperties(ModifyClientPropertiesRequest request) {request = beforeClientExecution(request);return executeModifyClientProperties(request);}

// Translation:
public virtual ModifyClientPropertiesResponse ModifyClientProperties(ModifyClientPropertiesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyClientPropertiesRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyClientPropertiesResponseUnmarshaller.Instance;return Invoke<ModifyClientPropertiesResponse>(request, options);}
// Original:
public void stopWalk() {if (parent != null)parent.stopWalk();}

// Translation:
public override void StopWalk(){if (parent != null){parent.StopWalk();}}
// Original:
public ObjectId toObjectId() {return isComplete() ? new ObjectId(w1, w2, w3, w4, w5) : null;}

// Translation:
public ObjectId ToObjectId(){return IsComplete ? new ObjectId(w1, w2, w3, w4, w5) : null;}
// Original:
public UpdateIntegrationResult updateIntegration(UpdateIntegrationRequest request) {request = beforeClientExecution(request);return executeUpdateIntegration(request);}

// Translation:
public virtual UpdateIntegrationResponse UpdateIntegration(UpdateIntegrationRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateIntegrationRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateIntegrationResponseUnmarshaller.Instance;return Invoke<UpdateIntegrationResponse>(request, options);}
// Original:
public PutDetectorResult putDetector(PutDetectorRequest request) {request = beforeClientExecution(request);return executePutDetector(request);}

// Translation:
public virtual PutDetectorResponse PutDetector(PutDetectorRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutDetectorRequestMarshaller.Instance;options.ResponseUnmarshaller = PutDetectorResponseUnmarshaller.Instance;return Invoke<PutDetectorResponse>(request, options);}
// Original:
public long getLong(String section, String name, long defaultValue) {return typedGetter.getLong(this, section, null, name, defaultValue);}

// Translation:
public virtual long GetLong(string section, string name, long defaultValue){return GetLong(section, null, name, defaultValue);}
// Original:
public void resetBackgroundImage(){EscherSimpleProperty property = getOptRecord().lookup(EscherPropertyTypes.FILL__PATTERNTEXTURE);if (null != property){EscherBSERecord bse = getPatriarch().getSheet().getWorkbook().getWorkbook().getBSERecord(property.getPropertyValue());bse.setRef(bse.getRef() - 1);getOptRecord().removeEscherProperty(EscherPropertyTypes.FILL__PATTERNTEXTURE);}setPropertyValue(new EscherSimpleProperty( EscherPropertyTypes.FILL__FILLTYPE, false, false, FILL_TYPE_SOLID));}

// Translation:
public void ResetBackgroundImage(){EscherSimpleProperty property = (EscherSimpleProperty)GetOptRecord().Lookup(EscherProperties.FILL__PATTERNTEXTURE);if (null != property){EscherBSERecord bse = ((HSSFWorkbook)((HSSFPatriarch)Patriarch).Sheet.Workbook).Workbook.GetBSERecord(property.PropertyValue);bse.Ref = (bse.Ref - 1);GetOptRecord().RemoveEscherProperty(EscherProperties.FILL__PATTERNTEXTURE);}SetPropertyValue(new EscherSimpleProperty(EscherProperties.FILL__FILLTYPE, false, false, FILL_TYPE_SOLID));}
// Original:
public void reset(DataInput in, long valueCount) {this.in = in;assert valueCount >= 0;this.valueCount = valueCount;off = blockSize;ord = 0;}

// Translation:
public void Reset(DataInput @in, long valueCount){this.@in = @in;Debug.Assert(valueCount >= 0);this.valueCount = valueCount;off = blockSize;ord = 0;}
// Original:
public ResetSnapshotAttributeResult resetSnapshotAttribute(ResetSnapshotAttributeRequest request) {request = beforeClientExecution(request);return executeResetSnapshotAttribute(request);}

// Translation:
public virtual ResetSnapshotAttributeResponse ResetSnapshotAttribute(ResetSnapshotAttributeRequest request){var options = new InvokeOptions();options.RequestMarshaller = ResetSnapshotAttributeRequestMarshaller.Instance;options.ResponseUnmarshaller = ResetSnapshotAttributeResponseUnmarshaller.Instance;return Invoke<ResetSnapshotAttributeResponse>(request, options);}
// Original:
public MutableValue duplicate() {MutableValueStr v = new MutableValueStr();v.value.copyBytes(value);v.exists = this.exists;return v;}

// Translation:
public override MutableValue Duplicate(){MutableValueStr v = new MutableValueStr();v.Value.CopyBytes(Value);v.Exists = this.Exists;return v;}
// Original:
public int getColumnNumber() { return column; }

// Translation:
public virtual int getColumnNumber(){return column;}
// Original:
public TokenStream create(TokenStream input) {if (pattern != null) {input = new PatternKeywordMarkerFilter(input, pattern);}if (protectedWords != null) {input = new SetKeywordMarkerFilter(input, protectedWords);}return input;}

// Translation:
public override TokenStream Create(TokenStream input){if (pattern != null){input = new PatternKeywordMarkerFilter(input, pattern);}if (protectedWords != null){input = new SetKeywordMarkerFilter(input, protectedWords);}return input;}
// Original:
public ElisionFilter(TokenStream input, CharArraySet articles) {super(input);this.articles = articles;}

// Translation:
public ElisionFilter(TokenStream input, CharArraySet articles): base(input){this.articles = articles;termAtt = AddAttribute<ICharTermAttribute>();}
// Original:
public static int strcmp(String str, char[] a, int start) {int i, d, len = str.length();for (i = 0; i < len; i++) {d = (int) str.charAt(i) - a[start + i];if (d != 0) {return d;}if (a[start + i] == 0) {return d;}}if (a[start + i] != 0) {return -a[start + i];}return 0;}

// Translation:
public static int StrCmp(string str, char[] a, int start){int i, d, len = str.Length;for (i = 0; i < len; i++){d = (int)str[i] - a[start + i];if (d != 0){return d;}if (a[start + i] == 0){return d;}}if (a[start + i] != 0){return -a[start + i];}return 0;}
// Original:
public NavigableSet<E> descendingSet() {return (descendingSet != null) ? descendingSet: (descendingSet = new TreeSet<E>(backingMap.descendingMap()));}

// Translation:
public virtual java.util.NavigableSet<E> descendingSet(){return (_descendingSet != null) ? _descendingSet : (_descendingSet = new java.util.TreeSet<E>(backingMap.descendingMap()));}
// Original:
public DecisionInfo[] getDecisionInfo() {return decisions;}

// Translation:
public DecisionInfo[] getDecisionInfo(){return decisions;}
// Original:
public PushConnection openPush() throws NotSupportedException {throw new NotSupportedException(JGitText.get().pushIsNotSupportedForBundleTransport);}

// Translation:
public override PushConnection OpenPush(){throw new NGit.Errors.NotSupportedException(JGitText.Get().pushIsNotSupportedForBundleTransport);}
// Original:
public PutRecordResult putRecord(PutRecordRequest request) {request = beforeClientExecution(request);return executePutRecord(request);}

// Translation:
public virtual PutRecordResponse PutRecord(PutRecordRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutRecordRequestMarshaller.Instance;options.ResponseUnmarshaller = PutRecordResponseUnmarshaller.Instance;return Invoke<PutRecordResponse>(request, options);}
// Original:
public List<? extends Token> getAllTokens() {List<Token> tokens = new ArrayList<Token>();Token t = nextToken();while ( t.getType()!=Token.EOF ) {tokens.add(t);t = nextToken();}return tokens;}

// Translation:
public virtual IList<IToken> GetAllTokens(){IList<IToken> tokens = new List<IToken>();IToken t = NextToken();while (t.Type != TokenConstants.EOF){tokens.Add(t);t = NextToken();}return tokens;}
// Original:
public ModifyInstanceCapacityReservationAttributesResult modifyInstanceCapacityReservationAttributes(ModifyInstanceCapacityReservationAttributesRequest request) {request = beforeClientExecution(request);return executeModifyInstanceCapacityReservationAttributes(request);}

// Translation:
public virtual ModifyInstanceCapacityReservationAttributesResponse ModifyInstanceCapacityReservationAttributes(ModifyInstanceCapacityReservationAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyInstanceCapacityReservationAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyInstanceCapacityReservationAttributesResponseUnmarshaller.Instance;return Invoke<ModifyInstanceCapacityReservationAttributesResponse>(request, options);}
// Original:
public MoveFacePhotosRequest() {super("CloudPhoto", "2017-07-11", "MoveFacePhotos", "cloudphoto");setProtocol(ProtocolType.HTTPS);}

// Translation:
public MoveFacePhotosRequest(): base("CloudPhoto", "2017-07-11", "MoveFacePhotos", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;}
// Original:
public RequestSpotFleetResult requestSpotFleet(RequestSpotFleetRequest request) {request = beforeClientExecution(request);return executeRequestSpotFleet(request);}

// Translation:
public virtual RequestSpotFleetResponse RequestSpotFleet(RequestSpotFleetRequest request){var options = new InvokeOptions();options.RequestMarshaller = RequestSpotFleetRequestMarshaller.Instance;options.ResponseUnmarshaller = RequestSpotFleetResponseUnmarshaller.Instance;return Invoke<RequestSpotFleetResponse>(request, options);}
// Original:
public ListApplicationSnapshotsResult listApplicationSnapshots(ListApplicationSnapshotsRequest request) {request = beforeClientExecution(request);return executeListApplicationSnapshots(request);}

// Translation:
public virtual ListApplicationSnapshotsResponse ListApplicationSnapshots(ListApplicationSnapshotsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListApplicationSnapshotsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListApplicationSnapshotsResponseUnmarshaller.Instance;return Invoke<ListApplicationSnapshotsResponse>(request, options);}
// Original:
public DefaultAcsClient(IClientProfile profile, AlibabaCloudCredentials credentials) {this(profile, new StaticCredentialsProvider(credentials));}

// Translation:
public DefaultAcsClient(IClientProfile profile, AlibabaCloudCredentials credentials) : this(){clientProfile = profile;credentialsProvider = new StaticCredentialsProvider(credentials);clientProfile.SetCredentialsProvider(credentialsProvider);}
// Original:
public ConcurrentRefUpdateException(String message, Ref ref,RefUpdate.Result rc) {super((rc == null) ? message : message + ". " + MessageFormat.format(JGitText.get().refUpdateReturnCodeWas, rc));this.rc = rc;this.ref = ref;}

// Translation:
public ConcurrentRefUpdateException(string message, Ref @ref, RefUpdate.Result rc) : base((rc == null) ? message : message + ". " + MessageFormat.Format(JGitText.Get().refUpdateReturnCodeWas, rc)){this.rc = rc;this.@ref = @ref;}
// Original:
public DeleteNetworkAclResult deleteNetworkAcl(DeleteNetworkAclRequest request) {request = beforeClientExecution(request);return executeDeleteNetworkAcl(request);}

// Translation:
public virtual DeleteNetworkAclResponse DeleteNetworkAcl(DeleteNetworkAclRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteNetworkAclRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteNetworkAclResponseUnmarshaller.Instance;return Invoke<DeleteNetworkAclResponse>(request, options);}
// Original:
public ShortBuffer get(short[] dst, int dstOffset, int shortCount) {Arrays.checkOffsetAndCount(dst.length, dstOffset, shortCount);if (shortCount > remaining()) {throw new BufferUnderflowException();}for (int i = dstOffset; i < dstOffset + shortCount; ++i) {dst[i] = get();}return this;}

// Translation:
public virtual java.nio.ShortBuffer get(short[] dst, int dstOffset, int shortCount){java.util.Arrays.checkOffsetAndCount(dst.Length, dstOffset, shortCount);if (shortCount > remaining()){throw new java.nio.BufferUnderflowException();}{for (int i = dstOffset; i < dstOffset + shortCount; ++i){dst[i] = get();}}return this;}
// Original:
public static SharedValueManager createEmpty() {return new SharedValueManager(new SharedFormulaRecord[0], new CellReference[0], new ArrayRecord[0], new TableRecord[0]);}

// Translation:
public static SharedValueManager CreateEmpty(){return new SharedValueManager(new SharedFormulaRecord[0], new CellReference[0], new List<ArrayRecord>(), new List<TableRecord>());}
// Original:
public DeleteCacheSecurityGroupResult deleteCacheSecurityGroup(DeleteCacheSecurityGroupRequest request) {request = beforeClientExecution(request);return executeDeleteCacheSecurityGroup(request);}

// Translation:
public virtual DeleteCacheSecurityGroupResponse DeleteCacheSecurityGroup(DeleteCacheSecurityGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteCacheSecurityGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteCacheSecurityGroupResponseUnmarshaller.Instance;return Invoke<DeleteCacheSecurityGroupResponse>(request, options);}
// Original:
public CreateGroupRequest(String groupName) {setGroupName(groupName);}

// Translation:
public CreateGroupRequest(string groupName){_groupName = groupName;}
// Original:
public void setParentId(AnyObjectId newParent) {parentIds = new ObjectId[] { newParent.copy() };}

// Translation:
public virtual void SetParentId(AnyObjectId newParent){parentIds = new ObjectId[] { newParent.Copy() };}
// Original:
public static boolean hasConflictingAltSet(Collection<BitSet> altsets) {for (BitSet alts : altsets) {if ( alts.cardinality()>1 ) {return true;}}return false;}

// Translation:
public static bool HasConflictingAltSet(IEnumerable<BitSet> altsets){foreach (BitSet alts in altsets){if (alts.Cardinality() > 1){return true;}}return false;}
// Original:
public CommonRpcRequest(String product) {super(product);setAcceptFormat(FormatType.JSON);}

// Translation:
public CommonRpcRequest(string product) : base(product){AcceptFormat = FormatType.JSON;}
// Original:
public K next()        { return super.nextEntry().key; }

// Translation:
public override K next(){return this.nextEntry().key;}
// Original:
public DeleteTransitGatewayMulticastDomainResult deleteTransitGatewayMulticastDomain(DeleteTransitGatewayMulticastDomainRequest request) {request = beforeClientExecution(request);return executeDeleteTransitGatewayMulticastDomain(request);}

// Translation:
public virtual DeleteTransitGatewayMulticastDomainResponse DeleteTransitGatewayMulticastDomain(DeleteTransitGatewayMulticastDomainRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteTransitGatewayMulticastDomainRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteTransitGatewayMulticastDomainResponseUnmarshaller.Instance;return Invoke<DeleteTransitGatewayMulticastDomainResponse>(request, options);}
// Original:
public DescribeEventsResult describeEvents(DescribeEventsRequest request) {request = beforeClientExecution(request);return executeDescribeEvents(request);}

// Translation:
public virtual DescribeEventsResponse DescribeEvents(DescribeEventsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeEventsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeEventsResponseUnmarshaller.Instance;return Invoke<DescribeEventsResponse>(request, options);}
// Original:
public DescribeFleetsResult describeFleets(DescribeFleetsRequest request) {request = beforeClientExecution(request);return executeDescribeFleets(request);}

// Translation:
public virtual DescribeFleetsResponse DescribeFleets(DescribeFleetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeFleetsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeFleetsResponseUnmarshaller.Instance;return Invoke<DescribeFleetsResponse>(request, options);}
// Original:
public DescribeDataRepositoryTasksResult describeDataRepositoryTasks(DescribeDataRepositoryTasksRequest request) {request = beforeClientExecution(request);return executeDescribeDataRepositoryTasks(request);}

// Translation:
public virtual DescribeDataRepositoryTasksResponse DescribeDataRepositoryTasks(DescribeDataRepositoryTasksRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDataRepositoryTasksRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDataRepositoryTasksResponseUnmarshaller.Instance;return Invoke<DescribeDataRepositoryTasksResponse>(request, options);}
// Original:
public StartLabelDetectionResult startLabelDetection(StartLabelDetectionRequest request) {request = beforeClientExecution(request);return executeStartLabelDetection(request);}

// Translation:
public virtual StartLabelDetectionResponse StartLabelDetection(StartLabelDetectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartLabelDetectionRequestMarshaller.Instance;options.ResponseUnmarshaller = StartLabelDetectionResponseUnmarshaller.Instance;return Invoke<StartLabelDetectionResponse>(request, options);}
// Original:
public static long getLastCommitGeneration(String[] files) {long max = -1;for (String file : files) {if (file.startsWith(IndexFileNames.SEGMENTS) &&file.startsWith(OLD_SEGMENTS_GEN) == false) {long gen = generationFromSegmentsFileName(file);if (gen > max) {max = gen;}}}return max;}

// Translation:
public static long GetLastCommitGeneration(string[] files){if (files == null){return -1;}long max = -1;foreach (var file in files){if (file.StartsWith(IndexFileNames.SEGMENTS, StringComparison.Ordinal) && !file.Equals(IndexFileNames.SEGMENTS_GEN, StringComparison.Ordinal)){long gen = GenerationFromSegmentsFileName(file);if (gen > max){max = gen;}}}return max;}
// Original:
public EnableFastSnapshotRestoresResult enableFastSnapshotRestores(EnableFastSnapshotRestoresRequest request) {request = beforeClientExecution(request);return executeEnableFastSnapshotRestores(request);}

// Translation:
public virtual EnableFastSnapshotRestoresResponse EnableFastSnapshotRestores(EnableFastSnapshotRestoresRequest request){var options = new InvokeOptions();options.RequestMarshaller = EnableFastSnapshotRestoresRequestMarshaller.Instance;options.ResponseUnmarshaller = EnableFastSnapshotRestoresResponseUnmarshaller.Instance;return Invoke<EnableFastSnapshotRestoresResponse>(request, options);}
// Original:
public ListVPCAssociationAuthorizationsResult listVPCAssociationAuthorizations(ListVPCAssociationAuthorizationsRequest request) {request = beforeClientExecution(request);return executeListVPCAssociationAuthorizations(request);}

// Translation:
public virtual ListVPCAssociationAuthorizationsResponse ListVPCAssociationAuthorizations(ListVPCAssociationAuthorizationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListVPCAssociationAuthorizationsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListVPCAssociationAuthorizationsResponseUnmarshaller.Instance;return Invoke<ListVPCAssociationAuthorizationsResponse>(request, options);}
// Original:
public Thumbnail(final byte[] thumbnailData){this._thumbnailData = thumbnailData;}

// Translation:
public Thumbnail(byte[] thumbnailData){this.thumbnailData = thumbnailData;}
// Original:
public final Explanation explain(BasicStats stats, double tfn) {return Explanation.match((float) (scoreTimes1pTfn(stats) / (1 + tfn)),getClass().getSimpleName() + ", computed as 1 / (tfn + 1) from:",Explanation.match((float) tfn, "tfn, normalized term frequency"));}

// Translation:
public override sealed Explanation Explain(BasicStats stats, float tfn){Explanation result = new Explanation();result.Description = this.GetType().Name + ", computed from: ";result.Value = Score(stats, tfn);result.AddDetail(new Explanation(tfn, "tfn"));return result;}
// Original:
public static String[] parse(String line) {boolean insideQuote = false;ArrayList<String> result = new ArrayList<>();int quoteCount = 0;StringBuilder sb = new StringBuilder();for(int i = 0; i < line.length(); i++) {char c = line.charAt(i);if(c == QUOTE) {insideQuote = !insideQuote;quoteCount++;}if(c == COMMA && !insideQuote) {String value = sb.toString();value = unQuoteUnEscape(value);result.add(value);sb.setLength(0);continue;}sb.append(c);}result.add(sb.toString());if(quoteCount % 2 != 0) {return new String[0];}return result.toArray(new String[result.size()]);}

// Translation:
public static string[] Parse(string line){bool insideQuote = false;List<string> result = new List<string>();int quoteCount = 0;StringBuilder sb = new StringBuilder();for (int i = 0; i < line.Length; i++){char c = line[i];if (c == QUOTE){insideQuote = !insideQuote;quoteCount++;}if (c == COMMA && !insideQuote){string value = sb.ToString();value = UnQuoteUnEscape(value);result.Add(value);sb.Length = 0;continue;}sb.Append(c);}result.Add(sb.ToString());if (quoteCount % 2 != 0){return new string[0];}return result.ToArray();}
// Original:
public String toString(String field) {StringBuilder buffer = new StringBuilder();buffer.append("mask(");buffer.append(maskedQuery.toString(field));buffer.append(")");buffer.append(" as ");buffer.append(this.field);return buffer.toString();}

// Translation:
public override string ToString(string field){StringBuilder buffer = new StringBuilder();buffer.Append("mask(");buffer.Append(maskedQuery.ToString(field));buffer.Append(")");buffer.Append(ToStringUtils.Boost(Boost));buffer.Append(" as ");buffer.Append(this.field);return buffer.ToString();}