yijunyu/c-to-rust huggingface dataset:
// Original:
public long get(int index) {final int o = index / 5;final int b = index % 5;final int shift = b * 12;return (blocks[o] >>> shift) & 4095L;}

// Translation:
public override long Get(int index){int o = index / 5;int b = index % 5;int shift = b * 12;return ((long)((ulong)blocks[o] >> shift)) & 4095L;}
// Original:
@Override public void clear() {synchronized (mutex) {c.clear();}}

// Translation:
public virtual void clear(){lock (mutex){c.clear();}}
// Original:
public boolean hasNext() {return _nextIndex < _endIx;}

// Translation:
public bool HasNext(){return _nextIndex < _endIx;}
// Original:
public AssociateVirtualInterfaceResult associateVirtualInterface(AssociateVirtualInterfaceRequest request) {request = beforeClientExecution(request);return executeAssociateVirtualInterface(request);}

// Translation:
public virtual AssociateVirtualInterfaceResponse AssociateVirtualInterface(AssociateVirtualInterfaceRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateVirtualInterfaceRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateVirtualInterfaceResponseUnmarshaller.Instance;return Invoke<AssociateVirtualInterfaceResponse>(request, options);}
// Original:
public DoubleValuesSource makeDistanceValueSource(Point queryPoint) {return makeDistanceValueSource(queryPoint, 1.0);}

// Translation:
public virtual ValueSource MakeDistanceValueSource(IPoint queryPoint){return MakeDistanceValueSource(queryPoint, 1.0);}
// Original:
public float getTokenScore() {position += posIncAtt.getPositionIncrement();String termText = termAtt.toString();WeightedSpanTerm weightedSpanTerm;if ((weightedSpanTerm = fieldWeightedSpanTerms.get(termText)) == null) {return 0;}if (weightedSpanTerm.positionSensitive &&!weightedSpanTerm.checkPosition(position)) {return 0;}float score = weightedSpanTerm.getWeight();if (!foundTerms.contains(termText)) {totalScore += score;foundTerms.add(termText);}return score;}

// Translation:
public virtual float GetTokenScore(){position += posIncAtt.PositionIncrement;string termText = termAtt.ToString();WeightedSpanTerm weightedSpanTerm;if (!fieldWeightedSpanTerms.TryGetValue(termText, out weightedSpanTerm) || weightedSpanTerm == null){return 0;}if (weightedSpanTerm.IsPositionSensitive &&!weightedSpanTerm.CheckPosition(position)){return 0;}float score = weightedSpanTerm.Weight;if (!foundTerms.Contains(termText)){totalScore += score;foundTerms.Add(termText);}return score;}
// Original:
public E pollFirst() {Map.Entry<E, Object> entry = backingMap.pollFirstEntry();return (entry == null) ? null : entry.getKey();}

// Translation:
public virtual E pollFirst(){java.util.MapClass.Entry<E, object> entry = backingMap.pollFirstEntry();return (entry == null) ? default(E) : entry.getKey();}
// Original:
public void enterEveryRule(ParserRuleContext ctx) {System.out.println("enter   " + getRuleNames()[ctx.getRuleIndex()] +", LT(1)=" + _input.LT(1).getText());}

// Translation:
public virtual void EnterEveryRule(ParserRuleContext ctx){Output.WriteLine("enter   " + this._enclosing.RuleNames[ctx.RuleIndex] + ", LT(1)=" + this._enclosing._input.LT(1).Text);}
// Original:
public ShortBuffer put(int index, short c) {checkIndex(index);byteBuffer.putShort(index * SizeOf.SHORT, c);return this;}

// Translation:
public override java.nio.ShortBuffer put(int index, short c){checkIndex(index);byteBuffer.putShort(index * libcore.io.SizeOf.SHORT, c);return this;}
// Original:
public void notifyUpdateCell(Cell cell) {_bookEvaluator.notifyUpdateCell(new HSSFEvaluationCell((HSSFCell)cell));}

// Translation:
public void NotifyUpdateCell(ICell cell){_bookEvaluator.NotifyUpdateCell(new HSSFEvaluationCell(cell));}
// Original:
public void moveCell(HSSFCell cell, short newColumn) {if(cells.length > newColumn && cells[newColumn] != null) {throw new IllegalArgumentException("Asked to move cell to column " + newColumn + " but there's already a cell there");}if(! cells[cell.getColumnIndex()].equals(cell)) {throw new IllegalArgumentException("Asked to move a cell, but it didn't belong to our row");}removeCell(cell, false);cell.updateCellNum(newColumn);addCell(cell);}

// Translation:
public void MoveCell(ICell cell, int newColumn){if(cells.ContainsKey(newColumn)){throw new ArgumentException("Asked to move cell to column " + newColumn + " but there's already a cell there");}bool existflag = false;foreach (ICell cellinrow in cells.Values){if (cellinrow.Equals(cell)){existflag = true;break;}}if (!existflag){throw new ArgumentException("Asked to move a cell, but it didn't belong to our row");}RemoveCell(cell, false);((HSSFCell)cell).UpdateCellNum(newColumn);AddCell(cell);}
// Original:
public void connect(PipedWriter src) throws IOException {src.connect(this);}

// Translation:
public virtual void connect(java.io.PipedWriter src){throw new System.NotImplementedException();}
// Original:
public void serialize(LittleEndianOutput out) {out.writeShort(getFirstColumn());out.writeShort(getLastColumn());out.writeShort(getColumnWidth());out.writeShort(getXFIndex());out.writeShort(_options);out.writeShort(field_6_reserved);}

// Translation:
public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(FirstColumn);out1.WriteShort(LastColumn);out1.WriteShort(ColumnWidth);out1.WriteShort(XFIndex);out1.WriteShort(_options);out1.WriteShort(field_6_reserved);}
// Original:
public ModifyWorkspaceCreationPropertiesResult modifyWorkspaceCreationProperties(ModifyWorkspaceCreationPropertiesRequest request) {request = beforeClientExecution(request);return executeModifyWorkspaceCreationProperties(request);}

// Translation:
public virtual ModifyWorkspaceCreationPropertiesResponse ModifyWorkspaceCreationProperties(ModifyWorkspaceCreationPropertiesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyWorkspaceCreationPropertiesRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyWorkspaceCreationPropertiesResponseUnmarshaller.Instance;return Invoke<ModifyWorkspaceCreationPropertiesResponse>(request, options);}
// Original:
public BoolDocValues(ValueSource vs) {this.vs = vs;}

// Translation:
public BoolDocValues(ValueSource vs){this.m_vs = vs;}
// Original:
public void reset() {nextWrite--;while(count > 0) {if (nextWrite == -1) {nextWrite = positions.length - 1;}positions[nextWrite--].reset();count--;}nextWrite = 0;nextPos = 0;count = 0;}

// Translation:
public void Reset(){nextWrite--;while (count > 0){if (nextWrite == -1){nextWrite = positions.Length - 1;}positions[nextWrite--].Reset();count--;}nextWrite = 0;nextPos = 0;count = 0;}
// Original:
public UpdateDirectConnectGatewayAssociationResult updateDirectConnectGatewayAssociation(UpdateDirectConnectGatewayAssociationRequest request) {request = beforeClientExecution(request);return executeUpdateDirectConnectGatewayAssociation(request);}

// Translation:
public virtual UpdateDirectConnectGatewayAssociationResponse UpdateDirectConnectGatewayAssociation(UpdateDirectConnectGatewayAssociationRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDirectConnectGatewayAssociationRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDirectConnectGatewayAssociationResponseUnmarshaller.Instance;return Invoke<UpdateDirectConnectGatewayAssociationResponse>(request, options);}
// Original:
public EditPhotoStoreRequest() {super("CloudPhoto", "2017-07-11", "EditPhotoStore", "cloudphoto");setProtocol(ProtocolType.HTTPS);}

// Translation:
public EditPhotoStoreRequest(): base("CloudPhoto", "2017-07-11", "EditPhotoStore", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;}
// Original:
public String toString() {return "<matchNoDocsQueryNode/>";}

// Translation:
public override string ToString(){return "<matchNoDocsQueryNode/>";}
// Original:
public AddCommand addFilepattern(String filepattern) {checkCallable();filepatterns.add(filepattern);return this;}

// Translation:
public virtual NGit.Api.AddCommand AddFilepattern(string filepattern){CheckCallable();filepatterns.AddItem(filepattern);return this;}
// Original:
public String toString() {return '[' + "HEADERFOOTER" + "] (0x" +Integer.toHexString(sid).toUpperCase(Locale.ROOT) + ")\n" +"  rawData=" + HexDump.toHex(_rawData) + "\n" +"[/" + "HEADERFOOTER" + "]\n";}

// Translation:
public override String ToString(){StringBuilder sb = new StringBuilder();sb.Append("[").Append("HEADERFOOTER").Append("] (0x");sb.Append(StringUtil.ToHexString(sid).ToUpper() + ")\n");sb.Append("  rawData=").Append(HexDump.ToHex(_rawData)).Append("\n");sb.Append("[/").Append("HEADERFOOTER").Append("]\n");return sb.ToString();}
// Original:
public UpdateBrokerResult updateBroker(UpdateBrokerRequest request) {request = beforeClientExecution(request);return executeUpdateBroker(request);}

// Translation:
public virtual UpdateBrokerResponse UpdateBroker(UpdateBrokerRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateBrokerRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateBrokerResponseUnmarshaller.Instance;return Invoke<UpdateBrokerResponse>(request, options);}
// Original:
public FormatRecord clone() {return copy();}

// Translation:
public override Object Clone(){return this;}
// Original:
public AssociateS3ResourcesResult associateS3Resources(AssociateS3ResourcesRequest request) {request = beforeClientExecution(request);return executeAssociateS3Resources(request);}

// Translation:
public virtual AssociateS3ResourcesResponse AssociateS3Resources(AssociateS3ResourcesRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateS3ResourcesRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateS3ResourcesResponseUnmarshaller.Instance;return Invoke<AssociateS3ResourcesResponse>(request, options);}
// Original:
public UnknownRecord(int id, byte[] data) {_sid = id & 0xFFFF;_rawData = data;}

// Translation:
public UnknownRecord(int id, byte[] data){_sid = id & 0xFFFF;_rawData = data;}
// Original:
public TreeFilter clone() {return new Binary(a.clone(), b.clone());}

// Translation:
public override RevFilter Clone(){return new AndRevFilter.Binary(a.Clone(), b.Clone());}
// Original:
public int getRawValue(final int holder){return (holder & _mask);}

// Translation:
public int GetRawValue(int holder){return (holder & this._mask);}
// Original:
public CancelResizeResult cancelResize(CancelResizeRequest request) {request = beforeClientExecution(request);return executeCancelResize(request);}

// Translation:
public virtual CancelResizeResponse CancelResize(CancelResizeRequest request){var options = new InvokeOptions();options.RequestMarshaller = CancelResizeRequestMarshaller.Instance;options.ResponseUnmarshaller = CancelResizeResponseUnmarshaller.Instance;return Invoke<CancelResizeResponse>(request, options);}
// Original:
public CreateTransitGatewayRouteResult createTransitGatewayRoute(CreateTransitGatewayRouteRequest request) {request = beforeClientExecution(request);return executeCreateTransitGatewayRoute(request);}

// Translation:
public virtual CreateTransitGatewayRouteResponse CreateTransitGatewayRoute(CreateTransitGatewayRouteRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateTransitGatewayRouteRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateTransitGatewayRouteResponseUnmarshaller.Instance;return Invoke<CreateTransitGatewayRouteResponse>(request, options);}
// Original:
public FastVectorHighlighter( boolean phraseHighlight, boolean fieldMatch,FragListBuilder fragListBuilder, FragmentsBuilder fragmentsBuilder ){this.phraseHighlight = phraseHighlight;this.fieldMatch = fieldMatch;this.fragListBuilder = fragListBuilder;this.fragmentsBuilder = fragmentsBuilder;}

// Translation:
public FastVectorHighlighter(bool phraseHighlight, bool fieldMatch,IFragListBuilder fragListBuilder, IFragmentsBuilder fragmentsBuilder){this.phraseHighlight = phraseHighlight;this.fieldMatch = fieldMatch;this.fragListBuilder = fragListBuilder;this.fragmentsBuilder = fragmentsBuilder;}
// Original:
public SetTypeDefaultVersionResult setTypeDefaultVersion(SetTypeDefaultVersionRequest request) {request = beforeClientExecution(request);return executeSetTypeDefaultVersion(request);}

// Translation:
public virtual SetTypeDefaultVersionResponse SetTypeDefaultVersion(SetTypeDefaultVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = SetTypeDefaultVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = SetTypeDefaultVersionResponseUnmarshaller.Instance;return Invoke<SetTypeDefaultVersionResponse>(request, options);}
// Original:
public final long computeNorm(FieldInvertState state) {return get(state.getName()).computeNorm(state);}

// Translation:
public override sealed long ComputeNorm(FieldInvertState state){return Get(state.Name).ComputeNorm(state);}
// Original:
public CreateCustomVerificationEmailTemplateResult createCustomVerificationEmailTemplate(CreateCustomVerificationEmailTemplateRequest request) {request = beforeClientExecution(request);return executeCreateCustomVerificationEmailTemplate(request);}

// Translation:
public virtual CreateCustomVerificationEmailTemplateResponse CreateCustomVerificationEmailTemplate(CreateCustomVerificationEmailTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateCustomVerificationEmailTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateCustomVerificationEmailTemplateResponseUnmarshaller.Instance;return Invoke<CreateCustomVerificationEmailTemplateResponse>(request, options);}
// Original:
public static double median(double[] v) {double r = Double.NaN;if (v!=null && v.length >= 1) {int n = v.length;Arrays.sort(v);r = (n % 2 == 0)? (v[n / 2] + v[n / 2 - 1]) / 2: v[n / 2];}return r;}

// Translation:
public static double median(double[] v){double r = double.NaN;if (v != null && v.Length >= 1){int n = v.Length;Array.Sort(v);r = (n % 2 == 0)? (v[n / 2] + v[n / 2 - 1]) / 2: v[n / 2];}return r;}
// Original:
public void walk(ParseTreeListener listener, ParseTree t) {if ( t instanceof ErrorNode) {listener.visitErrorNode((ErrorNode)t);return;}else if ( t instanceof TerminalNode) {listener.visitTerminal((TerminalNode)t);return;}RuleNode r = (RuleNode)t;enterRule(listener, r);int n = r.getChildCount();for (int i = 0; i<n; i++) {walk(listener, r.getChild(i));}exitRule(listener, r);}

// Translation:
public virtual void Walk(IParseTreeListener listener, IParseTree t){if (t is IErrorNode){listener.VisitErrorNode((IErrorNode)t);return;}else{if (t is ITerminalNode){listener.VisitTerminal((ITerminalNode)t);return;}}IRuleNode r = (IRuleNode)t;EnterRule(listener, r);int n = r.ChildCount;for (int i = 0; i < n; i++){Walk(listener, r.GetChild(i));}ExitRule(listener, r);}
// Original:
public SCLRecord(RecordInputStream in) {field_1_numerator              = in.readShort();field_2_denominator            = in.readShort();}

// Translation:
public SCLRecord(RecordInputStream in1){field_1_numerator = in1.ReadShort();field_2_denominator = in1.ReadShort();}
// Original:
public boolean add(final T value) {int index = elements.size();elements.add(value);valueKeyMap.put(value, index);return true;}

// Translation:
public bool Add(T value){int index = elements.Count;elements.Add(value);if (valueKeyMap.ContainsKey(value)){valueKeyMap[value] = index;}else{valueKeyMap.Add(value, index);}return true;}
// Original:
public RawText(byte[] input) {this(input, RawParseUtils.lineMap(input, 0, input.length));}

// Translation:
public RawText(byte[] input){content = input;lines = RawParseUtils.LineMap(content, 0, content.Length);}
// Original:
public void writeInt(int v) {checkPosition(4);int i = _writeIndex;_buf[i++] = (byte)((v >>>  0) & 0xFF);_buf[i++] = (byte)((v >>>  8) & 0xFF);_buf[i++] = (byte)((v >>> 16) & 0xFF);_buf[i++] = (byte)((v >>> 24) & 0xFF);_writeIndex = i;}

// Translation:
public void WriteInt(int v){CheckPosition(4);int i = _writeIndex;_buf[i++] = (byte)((v >> 0) & 0xFF);_buf[i++] = (byte)((v >> 8) & 0xFF);_buf[i++] = (byte)((v >> 16) & 0xFF);_buf[i++] = (byte)((v >> 24) & 0xFF);_writeIndex = i;}
// Original:
public GetRepoBatchRequest() {super("cr", "2016-06-07", "GetRepoBatch", "cr");setUriPattern("/batchsearch");setMethod(MethodType.GET);}

// Translation:
public GetRepoBatchRequest(): base("cr", "2016-06-07", "GetRepoBatch", "cr", "openAPI"){UriPattern = "/batchsearch";Method = MethodType.GET;}
// Original:
public MoPenDoRecognizeRequest() {super("MoPen", "2018-02-11", "MoPenDoRecognize", "mopen");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}

// Translation:
public MoPenDoRecognizeRequest(): base("MoPen", "2018-02-11", "MoPenDoRecognize", "mopen", "openAPI"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}
// Original:
public Iterator<Map.Entry<K,V>> iterator() {return new EntryIterator();}

// Translation:
public override java.util.Iterator<java.util.MapClass.Entry<K, V>> iterator(){return new java.util.Hashtable<K, V>.EntryIterator(this._enclosing);}
// Original:
public DeleteApnsSandboxChannelResult deleteApnsSandboxChannel(DeleteApnsSandboxChannelRequest request) {request = beforeClientExecution(request);return executeDeleteApnsSandboxChannel(request);}

// Translation:
public virtual DeleteApnsSandboxChannelResponse DeleteApnsSandboxChannel(DeleteApnsSandboxChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteApnsSandboxChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteApnsSandboxChannelResponseUnmarshaller.Instance;return Invoke<DeleteApnsSandboxChannelResponse>(request, options);}
// Original:
public short readShort() {if (shouldSkipEncryptionOnCurrentRecord) {readPlain(buffer, 0, LittleEndianConsts.SHORT_SIZE);return LittleEndian.getShort(buffer);} else {return ccis.readShort();}}

// Translation:
public short ReadShort(){return (short)_rc4.Xorshort(_le.ReadUShort());}
// Original:
public DeleteEndpointResult deleteEndpoint(DeleteEndpointRequest request) {request = beforeClientExecution(request);return executeDeleteEndpoint(request);}

// Translation:
public virtual DeleteEndpointResponse DeleteEndpoint(DeleteEndpointRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteEndpointRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteEndpointResponseUnmarshaller.Instance;return Invoke<DeleteEndpointResponse>(request, options);}
// Original:
@Override public int lastIndexOf(Object object) {return list.lastIndexOf(object);}

// Translation:
public virtual int lastIndexOf(object @object){return list.lastIndexOf(@object);}
// Original:
public void SwitchTo(int lexState){if (lexState >= 3 || lexState < 0)throw new TokenMgrError("Error: Ignoring invalid lexical state : " + lexState + ". State unchanged.", TokenMgrError.INVALID_LEXICAL_STATE);elsecurLexState = lexState;}

// Translation:
public void SwitchTo(int lexState){if (lexState >= 3 || lexState < 0)throw new TokenMgrError("Error: Ignoring invalid lexical state : " + lexState + ". State unchanged.", TokenMgrError.INVALID_LEXICAL_STATE);elsecurLexState = lexState;}
// Original:
public GetIndustryInfoChildrenListRequest() {super("industry-brain", "2018-07-12", "GetIndustryInfoChildrenList");setProtocol(ProtocolType.HTTPS);}

// Translation:
public GetIndustryInfoChildrenListRequest(): base("industry-brain", "2018-07-12", "GetIndustryInfoChildrenList"){Protocol = ProtocolType.HTTPS;}
// Original:
public Credential(String keyId, String secret, int expiredHours) {this.accessKeyId = keyId;this.accessSecret = secret;this.refreshDate = new Date();setExpiredDate(expiredHours);}

// Translation:
public Credential(string keyId, string secret, int expiredHours){AccessKeyId = keyId;AccessSecret = secret;RefreshDate = new DateTime();SetExpiredDate(expiredHours);}
// Original:
public KeywordMarkerFilterFactory(Map<String,String> args) {super(args);wordFiles = get(args, PROTECTED_TOKENS);stringPattern = get(args, PATTERN);ignoreCase = getBoolean(args, "ignoreCase", false);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}

// Translation:
public KeywordMarkerFilterFactory(IDictionary<string, string> args): base(args){wordFiles = Get(args, PROTECTED_TOKENS);stringPattern = Get(args, PATTERN);ignoreCase = GetBoolean(args, "ignoreCase", false);if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
// Original:
public CellRangeAddress getAreaAt(int index) {return _regions[_startIndex + index];}

// Translation:
public CellRangeAddress GetAreaAt(int index){return _regions[_startIndex + index];}
// Original:
public PutEmailIdentityDkimSigningAttributesResult putEmailIdentityDkimSigningAttributes(PutEmailIdentityDkimSigningAttributesRequest request) {request = beforeClientExecution(request);return executePutEmailIdentityDkimSigningAttributes(request);}

// Translation:
public virtual PutEmailIdentityDkimSigningAttributesResponse PutEmailIdentityDkimSigningAttributes(PutEmailIdentityDkimSigningAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutEmailIdentityDkimSigningAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = PutEmailIdentityDkimSigningAttributesResponseUnmarshaller.Instance;return Invoke<PutEmailIdentityDkimSigningAttributesResponse>(request, options);}
// Original:
public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(" [FEATURE SMART TAGS]\n");buffer.append(" [/FEATURE SMART TAGS]\n");return buffer.toString();}

// Translation:
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(" [FEATURE SMART TAGS]\n");buffer.Append(" [/FEATURE SMART TAGS]\n");return buffer.ToString();}
// Original:
public static void checkStartAndEnd(int len, int start, int end) {if (start < 0 || end > len) {throw new ArrayIndexOutOfBoundsException("start < 0 || end > len."+ " start=" + start + ", end=" + end + ", len=" + len);}if (start > end) {throw new IllegalArgumentException("start > end: " + start + " > " + end);}}

// Translation:
public static void checkStartAndEnd(int len, int start, int end){if (start < 0 || end > len){throw new System.IndexOutOfRangeException("start < 0 || end > len." + " start=" +start + ", end=" + end + ", len=" + len);}if (start > end){throw new System.ArgumentException("start > end: " + start + " > " + end);}}
// Original:
public Loc(int bookIndex, int sheetIndex, int rowIndex, int columnIndex) {_bookSheetColumn = toBookSheetColumn(bookIndex, sheetIndex, columnIndex);_rowIndex = rowIndex;}

// Translation:
public Loc(int bookIndex, int sheetIndex, int rowIndex, int columnIndex){_bookSheetColumn = ToBookSheetColumn(bookIndex, sheetIndex, columnIndex);_rowIndex = rowIndex;}
// Original:
public BoolErrRecord(RecordInputStream in) {super(in);switch (in.remaining()) {case 2:_value = in.readByte();break;case 3:_value = in.readUShort();break;default:throw new RecordFormatException("Unexpected size ("+ in.remaining() + ") for BOOLERR record.");}int flag = in.readUByte();switch (flag) {case 0:_isError = false;break;case 1:_isError = true;break;default:throw new RecordFormatException("Unexpected isError flag ("+ flag + ") for BOOLERR record.");}}

// Translation:
public BoolErrRecord(RecordInputStream in1): base(in1){switch (in1.Remaining){case 2:_value = in1.ReadByte();break;case 3:_value = in1.ReadUShort();break;default:throw new RecordFormatException("Unexpected size ("+ in1.Remaining + ") for BOOLERR record.");}int flag = in1.ReadUByte();switch (flag){case 0:_isError = false;break;case 1:_isError = true;break;default:throw new RecordFormatException("Unexpected isError flag ("+ flag + ") for BOOLERR record.");}}
// Original:
public String toString() {return "OrdTermState ord=" + ord;}

// Translation:
public override string ToString(){return "OrdTermState ord=" + Ord;}
// Original:
public Note(AnyObjectId noteOn, ObjectId noteData) {super(noteOn);data = noteData;}

// Translation:
public Note(AnyObjectId noteOn, ObjectId noteData) : base(noteOn){data = noteData;}