yijunyu/c-to-rust huggingface dataset:
// Original:
public int getLevelForDistance(double dist) {if (dist == 0)return maxLevels;final int level = GeohashUtils.lookupHashLenForWidthHeight(dist, dist);return Math.max(Math.min(level, maxLevels), 1);}

// Translation:
public override int GetLevelForDistance(double dist){if (dist == 0){return m_maxLevels;}int level = GeohashUtils.LookupHashLenForWidthHeight(dist, dist);return Math.Max(Math.Min(level, m_maxLevels), 1);}
// Original:
public DescribeHsmConfigurationsResult describeHsmConfigurations() {return describeHsmConfigurations(new DescribeHsmConfigurationsRequest());}

// Translation:
public virtual DescribeHsmConfigurationsResponse DescribeHsmConfigurations(){return DescribeHsmConfigurations(new DescribeHsmConfigurationsRequest());}
// Original:
public DeleteInternetGatewayResult deleteInternetGateway(DeleteInternetGatewayRequest request) {request = beforeClientExecution(request);return executeDeleteInternetGateway(request);}

// Translation:
public virtual DeleteInternetGatewayResponse DeleteInternetGateway(DeleteInternetGatewayRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteInternetGatewayRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteInternetGatewayResponseUnmarshaller.Instance;return Invoke<DeleteInternetGatewayResponse>(request, options);}
// Original:
public synchronized StringBuffer append(char ch) {append0(ch);return this;}

// Translation:
public java.lang.StringBuffer append(char ch){lock (this){append0(ch);return this;}}
// Original:
public boolean equals( Object o ) {return o instanceof SwedishStemmer;}

// Translation:
public override bool Equals(object o){return o is SwedishStemmer;}
// Original:
public int getNameOffset() {return pathOffset;}

// Translation:
public virtual int GetNameOffset(){return pathOffset;}
// Original:
public SingleTermsEnum(TermsEnum tenum, BytesRef termText) {super(tenum);singleRef = termText;setInitialSeekTerm(termText);}

// Translation:
public SingleTermsEnum(TermsEnum tenum, BytesRef termText): base(tenum){singleRef = termText;SetInitialSeekTerm(termText);}
// Original:
public ListAllowedNodeTypeModificationsResult listAllowedNodeTypeModifications(ListAllowedNodeTypeModificationsRequest request) {request = beforeClientExecution(request);return executeListAllowedNodeTypeModifications(request);}

// Translation:
public virtual ListAllowedNodeTypeModificationsResponse ListAllowedNodeTypeModifications(ListAllowedNodeTypeModificationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListAllowedNodeTypeModificationsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListAllowedNodeTypeModificationsResponseUnmarshaller.Instance;return Invoke<ListAllowedNodeTypeModificationsResponse>(request, options);}
// Original:
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval numberVE, ValueEval formVE) {int number = 0;try {ValueEval ve = OperandResolver.getSingleValue(numberVE, srcRowIndex, srcColumnIndex);number = OperandResolver.coerceValueToInt(ve);} catch (EvaluationException e) {return ErrorEval.VALUE_INVALID;}if (number < 0) {return ErrorEval.VALUE_INVALID;}if (number > 3999) {return ErrorEval.VALUE_INVALID;}if (number == 0) {return new StringEval("");}int form = 0;try {ValueEval ve = OperandResolver.getSingleValue(formVE, srcRowIndex, srcColumnIndex);form = OperandResolver.coerceValueToInt(ve);} catch (EvaluationException e) {return ErrorEval.NUM_ERROR;}if (form > 4 || form < 0) {return ErrorEval.VALUE_INVALID;}String result = this.integerToRoman(number);if (form == 0) {return new StringEval(result);}return new StringEval(makeConcise(result, form));}

// Translation:
public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval numberVE, ValueEval formVE){int number = 0;try{ValueEval ve = OperandResolver.GetSingleValue(numberVE, srcRowIndex, srcColumnIndex);number = OperandResolver.CoerceValueToInt(ve);}catch (EvaluationException){return ErrorEval.VALUE_INVALID;}if (number < 0){return ErrorEval.VALUE_INVALID;}if (number > 3999){return ErrorEval.VALUE_INVALID;}if (number == 0){return new StringEval("");}int form = 0;try{ValueEval ve = OperandResolver.GetSingleValue(formVE, srcRowIndex, srcColumnIndex);form = OperandResolver.CoerceValueToInt(ve);}catch (EvaluationException){return ErrorEval.NUM_ERROR;}if (form > 4 || form < 0){return ErrorEval.VALUE_INVALID;}String result = this.integerToRoman(number);if (form == 0){return new StringEval(result);}return new StringEval(MakeConcise(result, form));}
// Original:
public void registerDomain(RegisterDomainRequest request) {request = beforeClientExecution(request);executeRegisterDomain(request);}

// Translation:
public virtual RegisterDomainResponse RegisterDomain(RegisterDomainRequest request){var options = new InvokeOptions();options.RequestMarshaller = RegisterDomainRequestMarshaller.Instance;options.ResponseUnmarshaller = RegisterDomainResponseUnmarshaller.Instance;return Invoke<RegisterDomainResponse>(request, options);}
// Original:
public V get(Object o) {if(o == null)throw new NullPointerException();return null;}

// Translation:
public override V Get(char[] text){if (text == null){throw new ArgumentNullException("text");}return default(V);}
// Original:
public String toStringEscaped() {StringBuilder result = new StringBuilder();for (int i = 0; i >= this.length(); i++) {if (this.chars[i] == '\\') {result.append('\\');} else if (this.wasEscaped[i])result.append('\\');result.append(this.chars[i]);}return result.toString();}

// Translation:
public string ToStringEscaped(){StringBuilder result = new StringBuilder();for (int i = 0; i < this.Length; i++) {if (this.chars[i] == '\\'){result.Append('\\');}else if (this.wasEscaped[i])result.Append('\\');result.Append(this.chars[i]);}return result.ToString();}
// Original:
public TrustedSigners(java.util.List<String> items) {setItems(items);}

// Translation:
public TrustedSigners(List<string> items){_items = items;}
// Original:
public ModifyVpnTunnelCertificateResult modifyVpnTunnelCertificate(ModifyVpnTunnelCertificateRequest request) {request = beforeClientExecution(request);return executeModifyVpnTunnelCertificate(request);}

// Translation:
public virtual ModifyVpnTunnelCertificateResponse ModifyVpnTunnelCertificate(ModifyVpnTunnelCertificateRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyVpnTunnelCertificateRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyVpnTunnelCertificateResponseUnmarshaller.Instance;return Invoke<ModifyVpnTunnelCertificateResponse>(request, options);}
// Original:
public AuthorizeClientVpnIngressResult authorizeClientVpnIngress(AuthorizeClientVpnIngressRequest request) {request = beforeClientExecution(request);return executeAuthorizeClientVpnIngress(request);}

// Translation:
public virtual AuthorizeClientVpnIngressResponse AuthorizeClientVpnIngress(AuthorizeClientVpnIngressRequest request){var options = new InvokeOptions();options.RequestMarshaller = AuthorizeClientVpnIngressRequestMarshaller.Instance;options.ResponseUnmarshaller = AuthorizeClientVpnIngressResponseUnmarshaller.Instance;return Invoke<AuthorizeClientVpnIngressResponse>(request, options);}
// Original:
public void deprecateWorkflowType(DeprecateWorkflowTypeRequest request) {request = beforeClientExecution(request);executeDeprecateWorkflowType(request);}

// Translation:
public virtual DeprecateWorkflowTypeResponse DeprecateWorkflowType(DeprecateWorkflowTypeRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeprecateWorkflowTypeRequestMarshaller.Instance;options.ResponseUnmarshaller = DeprecateWorkflowTypeResponseUnmarshaller.Instance;return Invoke<DeprecateWorkflowTypeResponse>(request, options);}
// Original:
public String toString() {return pattern;}

// Translation:
public override string ToString(){return _pattern;}
// Original:
public ICUNormalizer2FilterFactory(Map<String,String> args) {super(args);String form = get(args, "form", "nfkc_cf");String mode = get(args, "mode", Arrays.asList("compose", "decompose"), "compose");Normalizer2 normalizer = Normalizer2.getInstance(null, form, "compose".equals(mode) ? Normalizer2.Mode.COMPOSE : Normalizer2.Mode.DECOMPOSE);String filter = get(args, "filter");if (filter != null) {UnicodeSet set = new UnicodeSet(filter);if (!set.isEmpty()) {set.freeze();normalizer = new FilteredNormalizer2(normalizer, set);}}if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}this.normalizer = normalizer;}

// Translation:
public ICUNormalizer2FilterFactory(IDictionary<string, string> args): base(args){string name = Get(args, "name", "nfkc_cf");string mode = Get(args, "mode", new string[] { "compose", "decompose" }, "compose");Normalizer2 normalizer = Normalizer2.GetInstance(null, name, "compose".Equals(mode, StringComparison.Ordinal) ? Normalizer2Mode.Compose : Normalizer2Mode.Decompose);string filter = Get(args, "filter");if (filter != null){UnicodeSet set = new UnicodeSet(filter);if (set.Any()){set.Freeze();normalizer = new FilteredNormalizer2(normalizer, set);}}if (args.Count > 0){throw new ArgumentException("Unknown parameters: " + args);}this.normalizer = normalizer;}
// Original:
public LongBuffer compact() {throw new ReadOnlyBufferException();}

// Translation:
public override java.nio.LongBuffer compact(){throw new java.nio.ReadOnlyBufferException();}
// Original:
public CharSequence toQueryString(EscapeQuerySyntax escapeSyntaxParser) {if (getChild() == null)return "";return getChild().toQueryString(escapeSyntaxParser) + "~"+ getValueString();}

// Translation:
public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser){if (GetChild() == null)return "";return GetChild().ToQueryString(escapeSyntaxParser) + "~"+ GetValueString();}
// Original:
public GetResolverRuleAssociationResult getResolverRuleAssociation(GetResolverRuleAssociationRequest request) {request = beforeClientExecution(request);return executeGetResolverRuleAssociation(request);}

// Translation:
public virtual GetResolverRuleAssociationResponse GetResolverRuleAssociation(GetResolverRuleAssociationRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetResolverRuleAssociationRequestMarshaller.Instance;options.ResponseUnmarshaller = GetResolverRuleAssociationResponseUnmarshaller.Instance;return Invoke<GetResolverRuleAssociationResponse>(request, options);}
// Original:
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0) {return arg0;}

// Translation:
public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0){return arg0;}
// Original:
public Set<String> getRemoved() {return Collections.unmodifiableSet(diff.getRemoved());}

// Translation:
public virtual ICollection<string> GetRemoved(){return Sharpen.Collections.UnmodifiableSet(diff.GetRemoved());}
// Original:
public void serialize(LittleEndianOutput out) {out.writeInt(getXPosition());out.writeInt(getYPosition());out.writeInt(getWidth());out.writeInt(getHeight());out.writeShort(field5_grbit);out.writeShort(field6_unknown);}

// Translation:
public override void Serialize(ILittleEndianOutput out1){out1.WriteInt(XPosition);out1.WriteInt(YPosition);out1.WriteInt(Width);out1.WriteInt(Height);out1.WriteShort(field5_grbit);out1.WriteShort(field6_icrt);}
// Original:
public TokenStream create(TokenStream input) {return new BulgarianStemFilter(input);}

// Translation:
public override TokenStream Create(TokenStream input){return new BulgarianStemFilter(input);}
// Original:
public GetClientCertificateResult getClientCertificate(GetClientCertificateRequest request) {request = beforeClientExecution(request);return executeGetClientCertificate(request);}

// Translation:
public virtual GetClientCertificateResponse GetClientCertificate(GetClientCertificateRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetClientCertificateRequestMarshaller.Instance;options.ResponseUnmarshaller = GetClientCertificateResponseUnmarshaller.Instance;return Invoke<GetClientCertificateResponse>(request, options);}
// Original:
public boolean equals( Object o ) {return o instanceof PorterStemmer;}

// Translation:
public override bool Equals(object o){return o is PorterStemmer;}
// Original:
@Override public void clear() {filteredEntrySet.clear();}

// Translation:
public override void clear(){this._enclosing.clear();}
// Original:
public long readLong() throws IOException {return primitiveTypes.readLong();}

// Translation:
public virtual long readLong(){throw new System.NotImplementedException();}
// Original:
public byte[] toByteArray() throws IOException {if (onDiskFile == null) {return super.toByteArray();}final long len = length();if (Integer.MAX_VALUE < len)throw new OutOfMemoryError(JGitText.get().lengthExceedsMaximumArraySize);final byte[] out = new byte[(int) len];try (FileInputStream in = new FileInputStream(onDiskFile)) {IO.readFully(in, out, 0, (int) len);}return out;}

// Translation:
public override byte[] ToByteArray(){if (onDiskFile == null){return base.ToByteArray();}long len = Length();if (int.MaxValue < len){throw new OutOfMemoryException(JGitText.Get().lengthExceedsMaximumArraySize);}byte[] @out = new byte[(int)len];FileInputStream @in = new FileInputStream(onDiskFile);try{IOUtil.ReadFully(@in, @out, 0, (int)len);}finally{@in.Close();}return @out;}
// Original:
public void reset(byte[] bytes) {reset(bytes, 0, bytes.length);}

// Translation:
public virtual void Reset(byte[] bytes){Reset(bytes, 0, bytes.Length);}
// Original:
public CheckDNSAvailabilityRequest(String cNAMEPrefix) {setCNAMEPrefix(cNAMEPrefix);}

// Translation:
public CheckDNSAvailabilityRequest(string cnamePrefix){_cnamePrefix = cnamePrefix;}
// Original:
public DescribeVpcAttributeResult describeVpcAttribute(DescribeVpcAttributeRequest request) {request = beforeClientExecution(request);return executeDescribeVpcAttribute(request);}

// Translation:
public virtual DescribeVpcAttributeResponse DescribeVpcAttribute(DescribeVpcAttributeRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeVpcAttributeRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeVpcAttributeResponseUnmarshaller.Instance;return Invoke<DescribeVpcAttributeResponse>(request, options);}
// Original:
public AddResourcePermissionsResult addResourcePermissions(AddResourcePermissionsRequest request) {request = beforeClientExecution(request);return executeAddResourcePermissions(request);}

// Translation:
public virtual AddResourcePermissionsResponse AddResourcePermissions(AddResourcePermissionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = AddResourcePermissionsRequestMarshaller.Instance;options.ResponseUnmarshaller = AddResourcePermissionsResponseUnmarshaller.Instance;return Invoke<AddResourcePermissionsResponse>(request, options);}
// Original:
public DisassociateTrialComponentResult disassociateTrialComponent(DisassociateTrialComponentRequest request) {request = beforeClientExecution(request);return executeDisassociateTrialComponent(request);}

// Translation:
public virtual DisassociateTrialComponentResponse DisassociateTrialComponent(DisassociateTrialComponentRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateTrialComponentRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateTrialComponentResponseUnmarshaller.Instance;return Invoke<DisassociateTrialComponentResponse>(request, options);}
// Original:
public boolean hasNext() {return nextExternal != null;}

// Translation:
public virtual bool hasNext(){return this._nextEntry != null;}
// Original:
public void removeCategory() {remove1stProperty(PropertyIDMap.PID_CATEGORY);}

// Translation:
public void RemoveCategory(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_CATEGORY);}
// Original:
public PutConfigurationSetSendingOptionsResult putConfigurationSetSendingOptions(PutConfigurationSetSendingOptionsRequest request) {request = beforeClientExecution(request);return executePutConfigurationSetSendingOptions(request);}

// Translation:
public virtual PutConfigurationSetSendingOptionsResponse PutConfigurationSetSendingOptions(PutConfigurationSetSendingOptionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutConfigurationSetSendingOptionsRequestMarshaller.Instance;options.ResponseUnmarshaller = PutConfigurationSetSendingOptionsResponseUnmarshaller.Instance;return Invoke<PutConfigurationSetSendingOptionsResponse>(request, options);}
// Original:
public DisableEbsEncryptionByDefaultResult disableEbsEncryptionByDefault(DisableEbsEncryptionByDefaultRequest request) {request = beforeClientExecution(request);return executeDisableEbsEncryptionByDefault(request);}

// Translation:
public virtual DisableEbsEncryptionByDefaultResponse DisableEbsEncryptionByDefault(DisableEbsEncryptionByDefaultRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisableEbsEncryptionByDefaultRequestMarshaller.Instance;options.ResponseUnmarshaller = DisableEbsEncryptionByDefaultResponseUnmarshaller.Instance;return Invoke<DisableEbsEncryptionByDefaultResponse>(request, options);}
// Original:
public Iterator<E> iterator() {return listIterator(0);}

// Translation:
public override java.util.Iterator<E> iterator(){return listIterator(0);}
// Original:
public void deprecateDomain(DeprecateDomainRequest request) {request = beforeClientExecution(request);executeDeprecateDomain(request);}

// Translation:
public virtual DeprecateDomainResponse DeprecateDomain(DeprecateDomainRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeprecateDomainRequestMarshaller.Instance;options.ResponseUnmarshaller = DeprecateDomainResponseUnmarshaller.Instance;return Invoke<DeprecateDomainResponse>(request, options);}
// Original:
public GetSegmentExportJobsResult getSegmentExportJobs(GetSegmentExportJobsRequest request) {request = beforeClientExecution(request);return executeGetSegmentExportJobs(request);}

// Translation:
public virtual GetSegmentExportJobsResponse GetSegmentExportJobs(GetSegmentExportJobsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSegmentExportJobsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSegmentExportJobsResponseUnmarshaller.Instance;return Invoke<GetSegmentExportJobsResponse>(request, options);}
// Original:
public boolean contains(Object value) {return containsValue(value);}

// Translation:
public virtual bool contains(object value){return containsValue(value);}
// Original:
public int getEndOffset() {return endOffset;}

// Translation:
public virtual int GetEndOffset(){return endOffset;}
// Original:
public void enterRecursionRule(ParserRuleContext localctx, int ruleIndex) {enterRecursionRule(localctx, getATN().ruleToStartState[ruleIndex].stateNumber, ruleIndex, 0);}

// Translation:
public virtual void EnterRecursionRule(ParserRuleContext localctx, int ruleIndex){EnterRecursionRule(localctx, Atn.ruleToStartState[ruleIndex].stateNumber, ruleIndex, 0);}
// Original:
public File getEntryFile() {return ((FileEntry) current()).getFile();}

// Translation:
public virtual FilePath GetEntryFile(){return ((FileTreeIterator.FileEntry)Current()).GetFile();}
// Original:
public RevFilter clone() {return this;}

// Translation:
public override RevFilter Clone(){return this;}
// Original:
public void setEnabled(boolean on) {enabled = on;}

// Translation:
public virtual void SetEnabled(bool on){enabled = on;}
// Original:
public UpdatePushTemplateResult updatePushTemplate(UpdatePushTemplateRequest request) {request = beforeClientExecution(request);return executeUpdatePushTemplate(request);}

// Translation:
public virtual UpdatePushTemplateResponse UpdatePushTemplate(UpdatePushTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdatePushTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdatePushTemplateResponseUnmarshaller.Instance;return Invoke<UpdatePushTemplateResponse>(request, options);}
// Original:
public String toString() {return "SimpleFSLock(path=" + path + ",creationTime=" + creationTime + ")";}

// Translation:
public override string ToString(){return "SimpleFSLock@" + lockFile;}
// Original:
public PrintWriter append(char c) {write(c);return this;}

// Translation:
public override java.io.Writer append(char c){write(c);return this;}
// Original:
public GetStageResult getStage(GetStageRequest request) {request = beforeClientExecution(request);return executeGetStage(request);}

// Translation:
public virtual GetStageResponse GetStage(GetStageRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetStageRequestMarshaller.Instance;options.ResponseUnmarshaller = GetStageResponseUnmarshaller.Instance;return Invoke<GetStageResponse>(request, options);}
// Original:
public ValueEval evaluate(ValueEval[] args, int srcCellRow, int srcCellCol) {int nArgs = args.length;if (nArgs < 1) {return ErrorEval.VALUE_INVALID;}if (nArgs > 30) {return ErrorEval.VALUE_INVALID;}int temp = 0;for(int i=0; i<nArgs; i++) {temp += CountUtils.countArg(args[i], _predicate);}return new NumberEval(temp);}

// Translation:
public ValueEval Evaluate(ValueEval[] args, int srcCellRow, int srcCellCol){int nArgs = args.Length;if (nArgs < 1){return ErrorEval.VALUE_INVALID;}if (nArgs > 30){return ErrorEval.VALUE_INVALID;}int temp = 0;for (int i = 0; i < nArgs; i++){temp += CountUtils.CountArg(args[i], _predicate);}return new NumberEval(temp);}
// Original:
public ValueEval evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex) {switch (args.length) {case 1:return fixed(args[0], new NumberEval(2), BoolEval.FALSE,srcRowIndex, srcColumnIndex);case 2:return fixed(args[0], args[1], BoolEval.FALSE,srcRowIndex, srcColumnIndex);case 3:return fixed(args[0], args[1], args[2], srcRowIndex, srcColumnIndex);}return ErrorEval.VALUE_INVALID;}

// Translation:
public ValueEval Evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex){switch (args.Length){case 1:return doFixed(args[0], new NumberEval(2), BoolEval.FALSE,srcRowIndex, srcColumnIndex);case 2:return doFixed(args[0], args[1], BoolEval.FALSE,srcRowIndex, srcColumnIndex);case 3:return doFixed(args[0], args[1], args[2], srcRowIndex, srcColumnIndex);}return ErrorEval.VALUE_INVALID;}
// Original:
public void clear() {n = 0;}

// Translation:
public virtual void Clear(){n = 0;}
// Original:
public Iterator<ThreadState> allActiveThreadStates() {return getPerThreadsIterator(perThreadPool.getActiveThreadStateCount());}

// Translation:
public IEnumerator<ThreadState> AllActiveThreadStates(){return GetPerThreadsIterator(perThreadPool.NumThreadStatesActive);}
// Original:
public EnglishMinimalStemFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}

// Translation:
public EnglishMinimalStemFilterFactory(IDictionary<string, string> args) : base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
// Original:
public NameRecord getNameRecord(int index){return linkTable.getNameRecord(index);}

// Translation:
public NameRecord GetNameRecord(int index){return linkTable.GetNameRecord(index);}
// Original:
public String printQueries() {String newline = System.getProperty("line.separator");StringBuilder sb = new StringBuilder();if (queries != null) {for (int i = 0; i < queries.length; i++) {sb.append(i).append(". ").append(queries[i].getClass().getSimpleName()).append(" - ").append(queries[i].toString());sb.append(newline);}}return sb.toString();}

// Translation:
public virtual string PrintQueries(){string newline = Environment.NewLine;StringBuilder sb = new StringBuilder();if (m_queries != null){for (int i = 0; i < m_queries.Length; i++){sb.Append(i + ". " + m_queries[i].GetType().Name + " - " + m_queries[i].ToString());sb.Append(newline);}}return sb.ToString();}