yijunyu/c-to-rust huggingface dataset:
// Original:
public TransferDomainToAnotherAwsAccountResult transferDomainToAnotherAwsAccount(TransferDomainToAnotherAwsAccountRequest request) {request = beforeClientExecution(request);return executeTransferDomainToAnotherAwsAccount(request);}

// Translation:
public virtual TransferDomainToAnotherAwsAccountResponse TransferDomainToAnotherAwsAccount(TransferDomainToAnotherAwsAccountRequest request){var options = new InvokeOptions();options.RequestMarshaller = TransferDomainToAnotherAwsAccountRequestMarshaller.Instance;options.ResponseUnmarshaller = TransferDomainToAnotherAwsAccountResponseUnmarshaller.Instance;return Invoke<TransferDomainToAnotherAwsAccountResponse>(request, options);}
// Original:
public final boolean weakCompareAndSet(V expect, V update) {return unsafe.compareAndSwapObject(this, valueOffset, expect, update);}

// Translation:
public bool weakCompareAndSet(V expect, V update){return compareAndSet(expect, update);}
// Original:
public void setResult(ReceiveCommand.Result status, String msg) {result = decode(status);super.setResult(status, msg);}

// Translation:
public override void SetResult(ReceiveCommand.Result status, string msg){this._enclosing.result = this.Decode(status);base.SetResult(status, msg);}
// Original:
public String toString() {return "skip";}

// Translation:
public override string ToString(){return "skip";}
// Original:
public List<String> getModifiedFiles() {return modifiedFiles;}

// Translation:
public virtual IList<string> GetModifiedFiles(){return modifiedFiles;}
// Original:
public final void serialize(LittleEndianOutput out) {out.writeShort(getRow());out.writeShort(getColumn());out.writeShort(getXFIndex());serializeValue(out);}

// Translation:
public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(Row);out1.WriteShort(Column);out1.WriteShort(XFIndex);SerializeValue(out1);}
// Original:
public String toString() {return "NotIgnored(" + index + ")";}

// Translation:
public override string ToString(){return "NotIgnored(" + index + ")";}
// Original:
public DescribeDBClusterParametersResult describeDBClusterParameters(DescribeDBClusterParametersRequest request) {request = beforeClientExecution(request);return executeDescribeDBClusterParameters(request);}

// Translation:
public virtual DescribeDBClusterParametersResponse DescribeDBClusterParameters(DescribeDBClusterParametersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDBClusterParametersRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDBClusterParametersResponseUnmarshaller.Instance;return Invoke<DescribeDBClusterParametersResponse>(request, options);}
// Original:
public CellRangeAddress copy() {return new CellRangeAddress(getFirstRow(), getLastRow(), getFirstColumn(), getLastColumn());}

// Translation:
public CellRangeAddress Copy(){return new CellRangeAddress(FirstRow, LastRow, FirstColumn, LastColumn);}
// Original:
public final boolean hasAny(RevFlagSet set) {return (flags & set.mask) != 0;}

// Translation:
public bool HasAny(RevFlagSet set){return (flags & set.mask) != 0;}
// Original:
public GetPolicyResult getPolicy(GetPolicyRequest request) {request = beforeClientExecution(request);return executeGetPolicy(request);}

// Translation:
public virtual GetPolicyResponse GetPolicy(GetPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = GetPolicyResponseUnmarshaller.Instance;return Invoke<GetPolicyResponse>(request, options);}
// Original:
public BookSheetKey(int bookIndex, int sheetIndex) {_bookIndex = bookIndex;_sheetIndex = sheetIndex;}

// Translation:
public BookSheetKey(int bookIndex, int sheetIndex){_bookIndex = bookIndex;_sheetIndex = sheetIndex;}
// Original:
public void setRate(int rate, boolean perMin) {this.rate = rate;this.perMin = perMin;setSequenceName();}

// Translation:
public virtual void SetRate(int rate, bool perMin){this.rate = rate;this.perMin = perMin;SetSequenceName();}
// Original:
public DescribeVpcEndpointConnectionsResult describeVpcEndpointConnections(DescribeVpcEndpointConnectionsRequest request) {request = beforeClientExecution(request);return executeDescribeVpcEndpointConnections(request);}

// Translation:
public virtual DescribeVpcEndpointConnectionsResponse DescribeVpcEndpointConnections(DescribeVpcEndpointConnectionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeVpcEndpointConnectionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeVpcEndpointConnectionsResponseUnmarshaller.Instance;return Invoke<DescribeVpcEndpointConnectionsResponse>(request, options);}
// Original:
public GetHostedZoneResult getHostedZone(GetHostedZoneRequest request) {request = beforeClientExecution(request);return executeGetHostedZone(request);}

// Translation:
public virtual GetHostedZoneResponse GetHostedZone(GetHostedZoneRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetHostedZoneRequestMarshaller.Instance;options.ResponseUnmarshaller = GetHostedZoneResponseUnmarshaller.Instance;return Invoke<GetHostedZoneResponse>(request, options);}
// Original:
public ChangeBatch(java.util.List<Change> changes) {setChanges(changes);}

// Translation:
public ChangeBatch(List<Change> changes){_changes = changes;}
// Original:
public String[] getExternalBookAndSheetName(int extRefIndex) {int ebIx = _externSheetRecord.getExtbookIndexFromRefIndex(extRefIndex);SupBookRecord ebr = _externalBookBlocks[ebIx].getExternalBookRecord();if (!ebr.isExternalReferences()) {return null;}int shIx1 = _externSheetRecord.getFirstSheetIndexFromRefIndex(extRefIndex);int shIx2 = _externSheetRecord.getLastSheetIndexFromRefIndex(extRefIndex);String firstSheetName = null;String lastSheetName = null;if (shIx1 >= 0) {firstSheetName = ebr.getSheetNames()[shIx1];}if (shIx2 >= 0) {lastSheetName = ebr.getSheetNames()[shIx2];}if (shIx1 == shIx2) {return new String[]{ebr.getURL(),firstSheetName};} else {return new String[]{ebr.getURL(),firstSheetName,lastSheetName};}}

// Translation:
public String[] GetExternalBookAndSheetName(int extRefIndex){int ebIx = _externSheetRecord.GetExtbookIndexFromRefIndex(extRefIndex);SupBookRecord ebr = _externalBookBlocks[ebIx].GetExternalBookRecord();if (!ebr.IsExternalReferences){return null;}int shIx1 = _externSheetRecord.GetFirstSheetIndexFromRefIndex(extRefIndex);int shIx2 = _externSheetRecord.GetLastSheetIndexFromRefIndex(extRefIndex);String firstSheetName = null;String lastSheetName = null;if (shIx1 >= 0){firstSheetName = ebr.SheetNames[shIx1];}if (shIx2 >= 0){lastSheetName = ebr.SheetNames[shIx2];}if (shIx1 == shIx2){return new String[] {ebr.URL,firstSheetName};}else{return new String[] {ebr.URL,firstSheetName,lastSheetName};}}
// Original:
public ChartEndBlockRecord(RecordInputStream in) {rt = in.readShort();grbitFrt = in.readShort();iObjectKind = in.readShort();if(in.available() == 0) {unused = new byte[0];} else {unused = new byte[6];in.readFully(unused);}}

// Translation:
public ChartEndBlockRecord(RecordInputStream in1){rt = in1.ReadShort();grbitFrt = in1.ReadShort();iObjectKind = in1.ReadShort();if(in1.Available() == 0) {unused = new byte[0];} else {unused = new byte[6];in1.ReadFully(unused);}}
// Original:
public CreateQueueResult createQueue(CreateQueueRequest request) {request = beforeClientExecution(request);return executeCreateQueue(request);}

// Translation:
public virtual CreateQueueResponse CreateQueue(CreateQueueRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateQueueRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateQueueResponseUnmarshaller.Instance;return Invoke<CreateQueueResponse>(request, options);}
// Original:
public void setMaxDocCharsToAnalyze(int maxDocCharsToAnalyze) {this.maxCharsToAnalyze = maxDocCharsToAnalyze;}

// Translation:
public virtual void SetMaxDocCharsToAnalyze(int maxDocCharsToAnalyze){this.maxCharsToAnalyze = maxDocCharsToAnalyze;}
// Original:
public CreateCodeRepositoryResult createCodeRepository(CreateCodeRepositoryRequest request) {request = beforeClientExecution(request);return executeCreateCodeRepository(request);}

// Translation:
public virtual CreateCodeRepositoryResponse CreateCodeRepository(CreateCodeRepositoryRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateCodeRepositoryRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateCodeRepositoryResponseUnmarshaller.Instance;return Invoke<CreateCodeRepositoryResponse>(request, options);}
// Original:
public static String getLastCommitSegmentsFileName(String[] files) {return IndexFileNames.fileNameFromGeneration(IndexFileNames.SEGMENTS,"",getLastCommitGeneration(files));}

// Translation:
public static string GetLastCommitSegmentsFileName(string[] files){return IndexFileNames.FileNameFromGeneration(IndexFileNames.SEGMENTS, "", GetLastCommitGeneration(files));}
// Original:
public final CharBuffer put(char[] src) {return put(src, 0, src.length);}

// Translation:
public java.nio.CharBuffer put(char[] src){return put(src, 0, src.Length);}
// Original:
public Certificate modifyCertificates(ModifyCertificatesRequest request) {request = beforeClientExecution(request);return executeModifyCertificates(request);}

// Translation:
public virtual ModifyCertificatesResponse ModifyCertificates(ModifyCertificatesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyCertificatesRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyCertificatesResponseUnmarshaller.Instance;return Invoke<ModifyCertificatesResponse>(request, options);}
// Original:
public void updateCell(String sheetName, int rowIndex, int columnIndex, ValueEval value) {ForkedEvaluationCell cell = _sewb.getOrCreateUpdatableCell(sheetName, rowIndex, columnIndex);cell.setValue(value);_evaluator.notifyUpdateCell(cell);}

// Translation:
public void UpdateCell(String sheetName, int rowIndex, int columnIndex, ValueEval value){ForkedEvaluationCell cell = _sewb.GetOrCreateUpdatableCell(sheetName, rowIndex, columnIndex);cell.SetValue(value);_evaluator.NotifyUpdateCell(cell);}
// Original:
public DisassociateMemberAccountResult disassociateMemberAccount(DisassociateMemberAccountRequest request) {request = beforeClientExecution(request);return executeDisassociateMemberAccount(request);}

// Translation:
public virtual DisassociateMemberAccountResponse DisassociateMemberAccount(DisassociateMemberAccountRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateMemberAccountRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateMemberAccountResponseUnmarshaller.Instance;return Invoke<DisassociateMemberAccountResponse>(request, options);}
// Original:
public boolean run(byte[] s, int offset, int length) {int p = 0;int l = offset + length;for (int i = offset; i < l; i++) {p = step(p, s[i] & 0xFF);if (p == -1) return false;}return accept.get(p);}

// Translation:
public virtual bool Run(byte[] s, int offset, int length){var p = m_initial;var l = offset + length;for (int i = offset; i < l; i++){p = Step(p, ((sbyte)s[i]) & 0xFF);if (p == -1){return false;}}return m_accept[p];}
// Original:
public DeleteTrafficPolicyResult deleteTrafficPolicy(DeleteTrafficPolicyRequest request) {request = beforeClientExecution(request);return executeDeleteTrafficPolicy(request);}

// Translation:
public virtual DeleteTrafficPolicyResponse DeleteTrafficPolicy(DeleteTrafficPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteTrafficPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteTrafficPolicyResponseUnmarshaller.Instance;return Invoke<DeleteTrafficPolicyResponse>(request, options);}
// Original:
public static PackIndex read(InputStream fd) throws IOException,CorruptObjectException {final byte[] hdr = new byte[8];IO.readFully(fd, hdr, 0, hdr.length);if (isTOC(hdr)) {final int v = NB.decodeInt32(hdr, 4);switch (v) {case 2:return new PackIndexV2(fd);default:throw new UnsupportedPackIndexVersionException(v);}}return new PackIndexV1(fd, hdr);}

// Translation:
public static PackIndex Read(InputStream fd){byte[] hdr = new byte[8];IOUtil.ReadFully(fd, hdr, 0, hdr.Length);if (IsTOC(hdr)){int v = NB.DecodeInt32(hdr, 4);switch (v){case 2:{return new PackIndexV2(fd);}default:{throw new IOException(MessageFormat.Format(JGitText.Get().unsupportedPackIndexVersion, Sharpen.Extensions.ValueOf(v)));}}}return new PackIndexV1(fd, hdr);}
// Original:
public double[] toArray() {if (_count < 1) {return EMPTY_DOUBLE_ARRAY;}double[] result = new double[_count];System.arraycopy(_array, 0, result, 0, _count);return result;}

// Translation:
public double[] ToArray(){if (_Count < 1){return EMPTY_DOUBLE_ARRAY;}double[] result = new double[_Count];Array.Copy(_array, 0, result, 0, _Count);return result;}
// Original:
public GetHostReservationPurchasePreviewResult getHostReservationPurchasePreview(GetHostReservationPurchasePreviewRequest request) {request = beforeClientExecution(request);return executeGetHostReservationPurchasePreview(request);}

// Translation:
public virtual GetHostReservationPurchasePreviewResponse GetHostReservationPurchasePreview(GetHostReservationPurchasePreviewRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetHostReservationPurchasePreviewRequestMarshaller.Instance;options.ResponseUnmarshaller = GetHostReservationPurchasePreviewResponseUnmarshaller.Instance;return Invoke<GetHostReservationPurchasePreviewResponse>(request, options);}
// Original:
public CustomAvailabilityZone createCustomAvailabilityZone(CreateCustomAvailabilityZoneRequest request) {request = beforeClientExecution(request);return executeCreateCustomAvailabilityZone(request);}

// Translation:
public virtual CreateCustomAvailabilityZoneResponse CreateCustomAvailabilityZone(CreateCustomAvailabilityZoneRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateCustomAvailabilityZoneRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateCustomAvailabilityZoneResponseUnmarshaller.Instance;return Invoke<CreateCustomAvailabilityZoneResponse>(request, options);}
// Original:
public EvaluationTracker(EvaluationCache cache) {_cache = cache;_evaluationFrames = new ArrayList<>();_currentlyEvaluatingCells = new HashSet<>();}

// Translation:
public EvaluationTracker(EvaluationCache cache){_cache = cache;_evaluationFrames = new ArrayList();_currentlyEvaluatingCells = new ArrayList();}
// Original:
public String toString() {return format(false, false);}

// Translation:
public override string ToString(){return Format(false, false);}
// Original:
public AcceptQualificationRequestResult acceptQualificationRequest(AcceptQualificationRequestRequest request) {request = beforeClientExecution(request);return executeAcceptQualificationRequest(request);}

// Translation:
public virtual AcceptQualificationRequestResponse AcceptQualificationRequest(AcceptQualificationRequestRequest request){var options = new InvokeOptions();options.RequestMarshaller = AcceptQualificationRequestRequestMarshaller.Instance;options.ResponseUnmarshaller = AcceptQualificationRequestResponseUnmarshaller.Instance;return Invoke<AcceptQualificationRequestResponse>(request, options);}
// Original:
public boolean markSupported() {return false;}

// Translation:
public override bool markSupported(){return false;}
// Original:
public StringBuffer appendTail(StringBuffer buffer) {if (appendPos < regionEnd) {buffer.append(input.substring(appendPos, regionEnd));}return buffer;}

// Translation:
public java.lang.StringBuffer appendTail(java.lang.StringBuffer buffer){if (appendPos < _regionEnd){buffer.append(Sharpen.StringHelper.Substring(input, appendPos, _regionEnd));}return buffer;}
// Original:
public String getSignificantDecimalDigits() {return Long.toString(_wholePart);}

// Translation:
public String GetSignificantDecimalDigits(){return _wholePart.ToString(CultureInfo.InvariantCulture);}
// Original:
public void setVerticalBorder(boolean value){field_1_options = verticalBorder.setShortBoolean(field_1_options, value);}

// Translation:
public void SetVerticalBorder(bool value){field_1_options = verticalBorder.SetShortBoolean(field_1_options, value);}
// Original:
public CRNRecord(RecordInputStream in) {field_1_last_column_index = in.readUByte();field_2_first_column_index = in.readUByte();field_3_row_index = in.readShort();int nValues = field_1_last_column_index - field_2_first_column_index + 1;field_4_constant_values = ConstantValueParser.parse(in, nValues);}

// Translation:
public CRNRecord(RecordInputStream in1){field_1_last_column_index = in1.ReadByte() & 0x00FF;field_2_first_column_index = in1.ReadByte() & 0x00FF;field_3_row_index = in1.ReadShort();int nValues = field_1_last_column_index - field_2_first_column_index + 1;field_4_constant_values = ConstantValueParser.Parse(in1, nValues);}
// Original:
public DBSecurityGroup revokeDBSecurityGroupIngress(RevokeDBSecurityGroupIngressRequest request) {request = beforeClientExecution(request);return executeRevokeDBSecurityGroupIngress(request);}

// Translation:
public virtual RevokeDBSecurityGroupIngressResponse RevokeDBSecurityGroupIngress(RevokeDBSecurityGroupIngressRequest request){var options = new InvokeOptions();options.RequestMarshaller = RevokeDBSecurityGroupIngressRequestMarshaller.Instance;options.ResponseUnmarshaller = RevokeDBSecurityGroupIngressResponseUnmarshaller.Instance;return Invoke<RevokeDBSecurityGroupIngressResponse>(request, options);}
// Original:
public CharBlockArray append(char[] chars, int start, int length) {int offset = start;int remain = length;while (remain > 0) {if (this.current.length == this.blockSize) {addBlock();}int toCopy = remain;int remainingInBlock = this.blockSize - this.current.length;if (remainingInBlock < toCopy) {toCopy = remainingInBlock;}System.arraycopy(chars, offset, this.current.chars, this.current.length, toCopy);offset += toCopy;remain -= toCopy;this.current.length += toCopy;}this.length += length;return this;}

// Translation:
public virtual CharBlockArray Append(char[] chars, int start, int length){int offset = start;int remain = length;while (remain > 0){if (this.current.length == this.blockSize){AddBlock();}int toCopy = remain;int remainingInBlock = this.blockSize - this.current.length;if (remainingInBlock < toCopy){toCopy = remainingInBlock;}Array.Copy(chars, offset, this.current.chars, this.current.length, toCopy);offset += toCopy;remain -= toCopy;this.current.length += toCopy;}this.length += length;return this;}
// Original:
public String toString() {return toString(null, true);}

// Translation:
public override String ToString(){return ToString(null, true);}
// Original:
public int doLogic() throws Exception {try {Locale locale = getRunData().getLocale();if (locale == null) throw new RuntimeException("Locale must be set with the NewLocale task!");Analyzer analyzer = createAnalyzer(locale, impl);getRunData().setAnalyzer(analyzer);System.out.println("Changed Analyzer to: "+ analyzer.getClass().getName() + "(" + locale + ")");} catch (Exception e) {throw new RuntimeException("Error creating Analyzer: impl=" + impl, e);}return 1;}

// Translation:
public override int DoLogic(){try{CultureInfo locale = RunData.Locale;if (locale == null) throw new Exception("Locale must be set with the NewLocale task!");Analyzer analyzer = CreateAnalyzer(locale, impl);RunData.Analyzer = analyzer;Console.WriteLine("Changed Analyzer to: "+ analyzer.GetType().Name + "(" + locale + ")");}catch (Exception e){throw new Exception("Error creating Analyzer: impl=" + impl, e);}return 1;}
// Original:
public final short get() {if (position == limit) {throw new BufferUnderflowException();}return backingArray[offset + position++];}

// Translation:
public sealed override short get(){if (_position == _limit){throw new java.nio.BufferUnderflowException();}return backingArray[offset + _position++];}
// Original:
public static String toHex(final short[] value){StringBuilder retVal = new StringBuilder();retVal.append('[');for(int x = 0; x < value.length; x++){if (x>0) {retVal.append(", ");}retVal.append(toHex(value[x]));}retVal.append(']');return retVal.toString();}

// Translation:
public static string ToHex(short[] value){StringBuilder buffer = new StringBuilder();buffer.Append('[');for (int i = 0; i < value.Length; i++){if (i > 0){buffer.Append(", ");}buffer.Append(ToHex(value[i]));}buffer.Append(']');return buffer.ToString();}
// Original:
public ListIPSetsResult listIPSets(ListIPSetsRequest request) {request = beforeClientExecution(request);return executeListIPSets(request);}

// Translation:
public virtual ListIPSetsResponse ListIPSets(ListIPSetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListIPSetsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListIPSetsResponseUnmarshaller.Instance;return Invoke<ListIPSetsResponse>(request, options);}
// Original:
public int getLevelForDistance(double dist) {if (dist == 0){return maxLevels;}int level =  S2Projections.MAX_WIDTH.getMinLevel(dist * DistanceUtils.DEGREES_TO_RADIANS);int roundLevel = level % arity != 0 ? 1 : 0;level = level/arity + roundLevel;return Math.min(maxLevels, level + 1);}

// Translation:
public override int GetLevelForDistance(double dist){if (dist == 0){return m_maxLevels;}for (int i = 0; i < m_maxLevels - 1; i++){if (dist > levelW[i] && dist > levelH[i]){return i + 1;}}return m_maxLevels;}
// Original:
public IndexableField[] getFields(String name) {List<IndexableField> result = new ArrayList<>();for (IndexableField field : fields) {if (field.name().equals(name)) {result.add(field);}}return result.toArray(new IndexableField[result.size()]);}

// Translation:
public IIndexableField[] GetFields(string name){var result = new List<IIndexableField>();foreach (IIndexableField field in fields){if (field.Name.Equals(name, StringComparison.Ordinal)){result.Add(field);}}return result.ToArray();}
// Original:
public GetTrafficPolicyResult getTrafficPolicy(GetTrafficPolicyRequest request) {request = beforeClientExecution(request);return executeGetTrafficPolicy(request);}

// Translation:
public virtual GetTrafficPolicyResponse GetTrafficPolicy(GetTrafficPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetTrafficPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = GetTrafficPolicyResponseUnmarshaller.Instance;return Invoke<GetTrafficPolicyResponse>(request, options);}
// Original:
public String name() {ensureId();return idBuffer.name();}

// Translation:
public virtual string Name(){EnsureId();return idBuffer.Name;}
// Original:
public DeleteExperimentResult deleteExperiment(DeleteExperimentRequest request) {request = beforeClientExecution(request);return executeDeleteExperiment(request);}

// Translation:
public virtual DeleteExperimentResponse DeleteExperiment(DeleteExperimentRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteExperimentRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteExperimentResponseUnmarshaller.Instance;return Invoke<DeleteExperimentResponse>(request, options);}
// Original:
public static byte[] grow(byte[] array) {return grow(array, 1 + array.length);}

// Translation:
public static int[] Grow(int[] array){return Grow(array, 1 + array.Length);}
// Original:
public void serialize(LittleEndianOutput out) {out.writeShort(getReadOnly());out.writeShort(getPassword());out.writeShort(field_3_username_value.length());if(field_3_username_value.length() > 0) {out.writeByte(field_3_username_unicode_options);StringUtil.putCompressedUnicode(getUsername(), out);}}

// Translation:
public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(ReadOnly);out1.WriteShort(Password);out1.WriteShort(field_3_username_value.Length);if (field_3_username_value.Length > 0){out1.WriteByte(field_3_username_unicode_options);StringUtil.PutCompressedUnicode(Username, out1);}}
// Original:
public BulgarianStemFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}

// Translation:
public BulgarianStemFilterFactory(IDictionary<string, string> args): base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}