yijunyu/c-to-rust huggingface dataset:
// Original:
public boolean containsValue(Object value) {if(value instanceof CustomProperty) {return props.containsValue(value);}for(CustomProperty cp : props.values()) {if(cp.getValue() == value) {return true;}}return false;}

// Translation:
public override bool ContainsValue(Object value){if (value is CustomProperty){return base.ContainsValue(value);}else{foreach (object cp in base.Values){if ((cp as CustomProperty).Value == value){return true;}}}return false;}
// Original:
public RecordInputStream createDecryptingStream(InputStream original) {String userPassword = Biff8EncryptionKey.getCurrentUserPassword();if (userPassword == null) {userPassword = Decryptor.DEFAULT_PASSWORD;}EncryptionInfo info = _filePassRec.getEncryptionInfo();try {if (!info.getDecryptor().verifyPassword(userPassword)) {throw new EncryptedDocumentException((Decryptor.DEFAULT_PASSWORD.equals(userPassword) ? "Default" : "Supplied")+ " password is invalid for salt/verifier/verifierHash");}} catch (GeneralSecurityException e) {throw new EncryptedDocumentException(e);}return new RecordInputStream(original, info, _initialRecordsSize);}

// Translation:
public RecordInputStream CreateDecryptingStream(Stream original){FilePassRecord fpr = _filePassRec;String userPassword = Biff8EncryptionKey.CurrentUserPassword;Biff8EncryptionKey key;if (userPassword == null){key = Biff8EncryptionKey.Create(fpr.DocId);}else{key = Biff8EncryptionKey.Create(userPassword, fpr.DocId);}if (!key.Validate(fpr.SaltData, fpr.SaltHash)){throw new EncryptedDocumentException((userPassword == null ? "Default" : "Supplied")+ " password is invalid for docId/saltData/saltHash");}return new RecordInputStream(original, key, _InitialRecordsSize);}
// Original:
public UpdateComponentConfigurationResult updateComponentConfiguration(UpdateComponentConfigurationRequest request) {request = beforeClientExecution(request);return executeUpdateComponentConfiguration(request);}

// Translation:
public virtual UpdateComponentConfigurationResponse UpdateComponentConfiguration(UpdateComponentConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateComponentConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateComponentConfigurationResponseUnmarshaller.Instance;return Invoke<UpdateComponentConfigurationResponse>(request, options);}
// Original:
public String toString() {CellReference crA = new CellReference(getFirstRow(), getFirstColumn());CellReference crB = new CellReference(getLastRow(), getLastColumn());return getClass().getName() + "[" +_evaluator.getSheetNameRange() +'!' +crA.formatAsString() +':' +crB.formatAsString() +"]";}

// Translation:
public override String ToString(){CellReference crA = new CellReference(FirstRow, FirstColumn);CellReference crB = new CellReference(LastRow, LastColumn);StringBuilder sb = new StringBuilder();sb.Append(GetType().Name).Append("[");sb.Append(_evaluator.SheetNameRange);sb.Append('!');sb.Append(crA.FormatAsString());sb.Append(':');sb.Append(crB.FormatAsString());sb.Append("]");return sb.ToString();}
// Original:
public SetDesiredCapacityResult setDesiredCapacity(SetDesiredCapacityRequest request) {request = beforeClientExecution(request);return executeSetDesiredCapacity(request);}

// Translation:
public virtual SetDesiredCapacityResponse SetDesiredCapacity(SetDesiredCapacityRequest request){var options = new InvokeOptions();options.RequestMarshaller = SetDesiredCapacityRequestMarshaller.Instance;options.ResponseUnmarshaller = SetDesiredCapacityResponseUnmarshaller.Instance;return Invoke<SetDesiredCapacityResponse>(request, options);}
// Original:
public long getTotalLLATNLookaheadOps() {DecisionInfo[] decisions = atnSimulator.getDecisionInfo();long k = 0;for (int i = 0; i < decisions.length; i++) {k += decisions[i].LL_ATNTransitions;}return k;}

// Translation:
public long getTotalLLATNLookaheadOps(){DecisionInfo[] decisions = atnSimulator.getDecisionInfo();long k = 0;for (int i = 0; i < decisions.Length; i++){k += decisions[i].LL_ATNTransitions;}return k;}
// Original:
public ListQueuesResult listQueues(ListQueuesRequest request) {request = beforeClientExecution(request);return executeListQueues(request);}

// Translation:
public virtual ListQueuesResponse ListQueues(ListQueuesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListQueuesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListQueuesResponseUnmarshaller.Instance;return Invoke<ListQueuesResponse>(request, options);}
// Original:
public void decode(byte[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations) {for (int i = 0; i < iterations; ++i) {final long byte0 = blocks[blocksOffset++] & 0xFF;final long byte1 = blocks[blocksOffset++] & 0xFF;final long byte2 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = (byte0 << 12) | (byte1 << 4) | (byte2 >>> 4);final long byte3 = blocks[blocksOffset++] & 0xFF;final long byte4 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte2 & 15) << 16) | (byte3 << 8) | byte4;}}

// Translation:
public override void Decode(byte[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations){for (int i = 0; i < iterations; ++i){long byte0 = blocks[blocksOffset++] & 0xFF;long byte1 = blocks[blocksOffset++] & 0xFF;long byte2 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = (byte0 << 12) | (byte1 << 4) | ((long)((ulong)byte2 >> 4));long byte3 = blocks[blocksOffset++] & 0xFF;long byte4 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte2 & 15) << 16) | (byte3 << 8) | byte4;}}
// Original:
public EnableVolumeIOResult enableVolumeIO(EnableVolumeIORequest request) {request = beforeClientExecution(request);return executeEnableVolumeIO(request);}

// Translation:
public virtual EnableVolumeIOResponse EnableVolumeIO(EnableVolumeIORequest request){var options = new InvokeOptions();options.RequestMarshaller = EnableVolumeIORequestMarshaller.Instance;options.ResponseUnmarshaller = EnableVolumeIOResponseUnmarshaller.Instance;return Invoke<EnableVolumeIOResponse>(request, options);}
// Original:
public long seek(BytesRef target) throws IOException {current = fstEnum.seekFloor(target);return current.output;}

// Translation:
public override long Seek(BytesRef target){current = fstEnum.SeekFloor(target);if (current.Output.HasValue){return current.Output.Value;}else{throw new NullReferenceException("_current.Output is null"); }}
// Original:
public GetStreamingDistributionConfigRequest(String id) {setId(id);}

// Translation:
public GetStreamingDistributionConfigRequest(string id){_id = id;}
// Original:
public WordnetSynonymParser(boolean dedup, boolean expand, Analyzer analyzer) {super(dedup, analyzer);this.expand = expand;}

// Translation:
public WordnetSynonymParser(bool dedup, bool expand, Analyzer analyzer): base(dedup, analyzer){this.expand = expand;}
// Original:
public DescribeProblemResult describeProblem(DescribeProblemRequest request) {request = beforeClientExecution(request);return executeDescribeProblem(request);}

// Translation:
public virtual DescribeProblemResponse DescribeProblem(DescribeProblemRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeProblemRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeProblemResponseUnmarshaller.Instance;return Invoke<DescribeProblemResponse>(request, options);}
// Original:
public E floor(E e) {return backingMap.floorKey(e);}

// Translation:
public virtual E floor(E e){return backingMap.floorKey(e);}
// Original:
public IrishLowerCaseFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}

// Translation:
public IrishLowerCaseFilterFactory(IDictionary<string, string> args) : base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
// Original:
public EnableAvailabilityZonesForLoadBalancerRequest(String loadBalancerName, java.util.List<String> availabilityZones) {setLoadBalancerName(loadBalancerName);setAvailabilityZones(availabilityZones);}

// Translation:
public EnableAvailabilityZonesForLoadBalancerRequest(string loadBalancerName, List<string> availabilityZones){_loadBalancerName = loadBalancerName;_availabilityZones = availabilityZones;}
// Original:
public DescribeLoadBalancerTargetGroupsResult describeLoadBalancerTargetGroups(DescribeLoadBalancerTargetGroupsRequest request) {request = beforeClientExecution(request);return executeDescribeLoadBalancerTargetGroups(request);}

// Translation:
public virtual DescribeLoadBalancerTargetGroupsResponse DescribeLoadBalancerTargetGroups(DescribeLoadBalancerTargetGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLoadBalancerTargetGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLoadBalancerTargetGroupsResponseUnmarshaller.Instance;return Invoke<DescribeLoadBalancerTargetGroupsResponse>(request, options);}
// Original:
public Snapshot copySnapshot(CopySnapshotRequest request) {request = beforeClientExecution(request);return executeCopySnapshot(request);}

// Translation:
public virtual CopySnapshotResponse CopySnapshot(CopySnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = CopySnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = CopySnapshotResponseUnmarshaller.Instance;return Invoke<CopySnapshotResponse>(request, options);}
// Original:
public Map<String, String> readForHideArrayItem(String response, String endpoint) {return readForHideItem(new StringCharacterIterator(response), endpoint, FIRST_POSITION);}

// Translation:
public Dictionary<string, string> ReadForHideArrayItem(string response, string endpoint){return ReadForHideArrayItem(response.GetEnumerator(), endpoint);}
// Original:
public LbsDropData(LittleEndianInput in) {_wStyle = in.readUShort();_cLine = in.readUShort();_dxMin = in.readUShort();_str = StringUtil.readUnicodeString(in);if(StringUtil.getEncodedSize(_str) % 2 != 0){_unused = in.readByte();}}

// Translation:
public LbsDropData(ILittleEndianInput in1){_wStyle = in1.ReadUShort();_cLine = in1.ReadUShort();_dxMin = in1.ReadUShort();_str = StringUtil.ReadUnicodeString(in1);if(StringUtil.GetEncodedSize(_str) % 2 != 0){_unused = (byte)in1.ReadByte();}}
// Original:
public void decode(long[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations) {for (int i = 0; i < iterations; ++i) {final long block = blocks[blocksOffset++];for (int shift = 60; shift >= 0; shift -= 4) {values[valuesOffset++] = (block >>> shift) & 15;}}}

// Translation:
public override void Decode(long[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations){for (int i = 0; i < iterations; ++i){long block = blocks[blocksOffset++];for (int shift = 60; shift >= 0; shift -= 4){values[valuesOffset++] = ((long)((ulong)block >> shift)) & 15;}}}
// Original:
public int doLogic() throws Exception {final String docID = doc.get(DocMaker.ID_FIELD);if (docID == null) {throw new IllegalStateException("document must define the docid field");}final IndexWriter iw = getRunData().getIndexWriter();iw.updateDocument(new Term(DocMaker.ID_FIELD, docID), doc);return 1;}

// Translation:
public override int DoLogic(){string docID = doc.Get(DocMaker.ID_FIELD);if (docID == null){throw new InvalidOperationException("document must define the docid field");}IndexWriter iw = RunData.IndexWriter;iw.UpdateDocument(new Term(DocMaker.ID_FIELD, docID), doc);return 1;}
// Original:
public ListInstanceFleetsResult listInstanceFleets(ListInstanceFleetsRequest request) {request = beforeClientExecution(request);return executeListInstanceFleets(request);}

// Translation:
public virtual ListInstanceFleetsResponse ListInstanceFleets(ListInstanceFleetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListInstanceFleetsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListInstanceFleetsResponseUnmarshaller.Instance;return Invoke<ListInstanceFleetsResponse>(request, options);}
// Original:
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex,ValueEval arg0, ValueEval arg1) {return func.evaluate(srcRowIndex, srcColumnIndex, arg0, arg1);}

// Translation:
public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex,ValueEval arg0, ValueEval arg1){return func.Evaluate(srcRowIndex, srcColumnIndex, arg0, arg1);}
// Original:
public DescribeDBParametersResult describeDBParameters(DescribeDBParametersRequest request) {request = beforeClientExecution(request);return executeDescribeDBParameters(request);}

// Translation:
public virtual DescribeDBParametersResponse DescribeDBParameters(DescribeDBParametersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDBParametersRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDBParametersResponseUnmarshaller.Instance;return Invoke<DescribeDBParametersResponse>(request, options);}
// Original:
public CreateFargateProfileResult createFargateProfile(CreateFargateProfileRequest request) {request = beforeClientExecution(request);return executeCreateFargateProfile(request);}

// Translation:
public virtual CreateFargateProfileResponse CreateFargateProfile(CreateFargateProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateFargateProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateFargateProfileResponseUnmarshaller.Instance;return Invoke<CreateFargateProfileResponse>(request, options);}
// Original:
public char previous() {if (offset == start) {return DONE;}return string.charAt(--offset);}

// Translation:
public char previous(){if (offset == start){return java.text.CharacterIteratorClass.DONE;}return @string[--offset];}
// Original:
public List<String> call() throws GitAPIException {checkCallable();List<String> result = new ArrayList<>();if (tags.isEmpty())return result;try {setCallable(false);for (String tagName : tags) {if (tagName == null)continue;Ref currentRef = repo.findRef(tagName);if (currentRef == null)continue;String fullName = currentRef.getName();RefUpdate update = repo.updateRef(fullName);update.setForceUpdate(true);Result deleteResult = update.delete();boolean ok = true;switch (deleteResult) {case IO_FAILURE:case LOCK_FAILURE:case REJECTED:ok = false;break;default:break;}if (ok) {result.add(fullName);} elsethrow new JGitInternalException(MessageFormat.format(JGitText.get().deleteTagUnexpectedResult,deleteResult.name()));}return result;} catch (IOException ioe) {throw new JGitInternalException(ioe.getMessage(), ioe);}}

// Translation:
public override IList<string> Call(){CheckCallable();IList<string> result = new AList<string>();if (tags.IsEmpty()){return result;}try{SetCallable(false);foreach (string tagName in tags){if (tagName == null){continue;}Ref currentRef = repo.GetRef(tagName);if (currentRef == null){continue;}string fullName = currentRef.GetName();RefUpdate update = repo.UpdateRef(fullName);update.SetForceUpdate(true);RefUpdate.Result deleteResult = update.Delete();bool ok = true;switch (deleteResult){case RefUpdate.Result.IO_FAILURE:case RefUpdate.Result.LOCK_FAILURE:case RefUpdate.Result.REJECTED:{ok = false;break;}default:{break;break;}}if (ok){result.AddItem(fullName);}else{throw new JGitInternalException(MessageFormat.Format(JGitText.Get().deleteTagUnexpectedResult, deleteResult.ToString()));}}return result;}catch (IOException ioe){throw new JGitInternalException(ioe.Message, ioe);}}
// Original:
public static void fill(byte[] array, byte value) {for (int i = 0; i < array.length; i++) {array[i] = value;}}

// Translation:
public static void fill(byte[] array, byte value){{for (int i = 0; i < array.Length; i++){array[i] = value;}}}
// Original:
public CreateSampleFindingsResult createSampleFindings(CreateSampleFindingsRequest request) {request = beforeClientExecution(request);return executeCreateSampleFindings(request);}

// Translation:
public virtual CreateSampleFindingsResponse CreateSampleFindings(CreateSampleFindingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateSampleFindingsRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateSampleFindingsResponseUnmarshaller.Instance;return Invoke<CreateSampleFindingsResponse>(request, options);}
// Original:
public Builder() {slop = 0;terms = new ArrayList<>();positions = new ArrayList<>();}

// Translation:
public Builder(): base(){lastDocID = -1;wordNum = -1;word = 0;}
// Original:
public boolean run(char[] s, int offset, int length) {int p = 0;int l = offset + length;for (int i = offset, cp = 0; i < l; i += Character.charCount(cp)) {p = step(p, cp = Character.codePointAt(s, i, l));if (p == -1) return false;}return accept.get(p);}

// Translation:
public virtual bool Run(char[] s, int offset, int length){int p = m_initial;int l = offset + length;for (int i = offset, cp = 0; i < l; i += Character.CharCount(cp)){p = Step(p, cp = Character.CodePointAt(s, i, l));if (p == -1) return false;}return m_accept[p];}
// Original:
public String toFormulaString() {return "ERR#";}

// Translation:
public override String ToFormulaString(){return "ERR#";}
// Original:
public void close() {synchronized (lock) {if (out != null) {try {out.close();} catch (IOException e) {setError();}out = null;}}}

// Translation:
public override void close(){lock (@lock){if (@out != null){try{@out.close();}catch (System.IO.IOException){setError();}@out = null;}}}
// Original:
public int fillFields( byte[] data, int offset,EscherRecordFactory recordFactory ){int bytesRemaining = readHeader( data, offset );short propertiesCount = readInstance( data, offset );int pos = offset + 8;EscherPropertyFactory f = new EscherPropertyFactory();properties.clear();properties.addAll( f.createProperties( data, pos, propertiesCount ) );return bytesRemaining + 8;}

// Translation:
public override int FillFields(byte[] data, int offset,IEscherRecordFactory recordFactory){int bytesRemaining = ReadHeader(data, offset);short propertiesCount = ReadInstance(data, offset);int pos = offset + 8;EscherPropertyFactory f = new EscherPropertyFactory();properties = f.CreateProperties(data, pos, propertiesCount);return bytesRemaining + 8;}
// Original:
public EveryNOrDocFreqTermSelector(int docFreqThresh, int interval) {this.interval = interval;this.docFreqThresh = docFreqThresh;count = interval;}

// Translation:
public EveryNOrDocFreqTermSelector(int docFreqThresh, int interval){this.interval = interval;this.docFreqThresh = docFreqThresh;count = interval;}
// Original:
public UpdateAvailabilityOptionsResult updateAvailabilityOptions(UpdateAvailabilityOptionsRequest request) {request = beforeClientExecution(request);return executeUpdateAvailabilityOptions(request);}

// Translation:
public virtual UpdateAvailabilityOptionsResponse UpdateAvailabilityOptions(UpdateAvailabilityOptionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateAvailabilityOptionsRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateAvailabilityOptionsResponseUnmarshaller.Instance;return Invoke<UpdateAvailabilityOptionsResponse>(request, options);}
// Original:
public AddInstanceFleetResult addInstanceFleet(AddInstanceFleetRequest request) {request = beforeClientExecution(request);return executeAddInstanceFleet(request);}

// Translation:
public virtual AddInstanceFleetResponse AddInstanceFleet(AddInstanceFleetRequest request){var options = new InvokeOptions();options.RequestMarshaller = AddInstanceFleetRequestMarshaller.Instance;options.ResponseUnmarshaller = AddInstanceFleetResponseUnmarshaller.Instance;return Invoke<AddInstanceFleetResponse>(request, options);}
// Original:
public synchronized void setMax(int max) {super.setMax(max);if ((mKeyProgressIncrement == 0) || (getMax() / mKeyProgressIncrement > 20)) {setKeyProgressIncrement(Math.max(1, Math.round((float) getMax() / 20)));}}

// Translation:
public override void setMax(int max){lock (this){base.setMax(max);if ((mKeyProgressIncrement == 0) || (getMax() / mKeyProgressIncrement > 20)){setKeyProgressIncrement(System.Math.Max(1, Sharpen.Util.Round((float)getMax() / 20)));}}}
// Original:
public LazyAreaEval getRow(int rowIndex) {if (rowIndex >= getHeight()) {throw new IllegalArgumentException("Invalid rowIndex " + rowIndex+ ".  Allowable range is (0.." + getHeight() + ").");}int absRowIx = getFirstRow() + rowIndex;return new LazyAreaEval(absRowIx, getFirstColumn(), absRowIx, getLastColumn(), _evaluator);}

// Translation:
public override TwoDEval GetRow(int rowIndex){if (rowIndex >= Height){throw new ArgumentException("Invalid rowIndex " + rowIndex+ ".  Allowable range is (0.." + Height + ").");}int absRowIx = FirstRow + rowIndex;return new LazyAreaEval(absRowIx, FirstColumn, absRowIx, LastColumn, _evaluator);}
// Original:
public IntervalSet getExpectedTokens(int stateNumber, RuleContext context) {if (stateNumber < 0 || stateNumber >= states.size()) {throw new IllegalArgumentException("Invalid state number.");}RuleContext ctx = context;ATNState s = states.get(stateNumber);IntervalSet following = nextTokens(s);if (!following.contains(Token.EPSILON)) {return following;}IntervalSet expected = new IntervalSet();expected.addAll(following);expected.remove(Token.EPSILON);while (ctx != null && ctx.invokingState >= 0 && following.contains(Token.EPSILON)) {ATNState invokingState = states.get(ctx.invokingState);RuleTransition rt = (RuleTransition)invokingState.transition(0);following = nextTokens(rt.followState);expected.addAll(following);expected.remove(Token.EPSILON);ctx = ctx.parent;}if (following.contains(Token.EPSILON)) {expected.add(Token.EOF);}return expected;}

// Translation:
public virtual IntervalSet GetExpectedTokens(int stateNumber, RuleContext context){if (stateNumber < 0 || stateNumber >= states.Count){throw new ArgumentException("Invalid state number.");}RuleContext ctx = context;ATNState s = states[stateNumber];IntervalSet following = NextTokens(s);if (!following.Contains(TokenConstants.EPSILON)){return following;}IntervalSet expected = new IntervalSet();expected.AddAll(following);expected.Remove(TokenConstants.EPSILON);while (ctx != null && ctx.invokingState >= 0 && following.Contains(TokenConstants.EPSILON)){ATNState invokingState = states[ctx.invokingState];RuleTransition rt = (RuleTransition)invokingState.Transition(0);following = NextTokens(rt.followState);expected.AddAll(following);expected.Remove(TokenConstants.EPSILON);ctx = ctx.Parent;}if (following.Contains(TokenConstants.EPSILON)){expected.Add(TokenConstants.EOF);}return expected;}
// Original:
public UntagResourceResult untagResource(UntagResourceRequest request) {request = beforeClientExecution(request);return executeUntagResource(request);}

// Translation:
public virtual UntagResourceResponse UntagResource(UntagResourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;return Invoke<UntagResourceResponse>(request, options);}
// Original:
public String getInflectionForm(int wordId) {return null;}

// Translation:
public override string GetInflectionForm(int wordId){return null;}
// Original:
public Ref3DPxg(int externalWorkbookNumber, SheetIdentifier sheetName, CellReference c) {super(c);this.externalWorkbookNumber = externalWorkbookNumber;this.firstSheetName = sheetName.getSheetIdentifier().getName();if (sheetName instanceof SheetRangeIdentifier) {this.lastSheetName = ((SheetRangeIdentifier)sheetName).getLastSheetIdentifier().getName();} else {this.lastSheetName = null;}}

// Translation:
public Ref3DPxg(int externalWorkbookNumber, SheetIdentifier sheetName, CellReference c): base(c){this.externalWorkbookNumber = externalWorkbookNumber;this.firstSheetName = sheetName.SheetId.Name;if (sheetName is SheetRangeIdentifier){this.lastSheetName = ((SheetRangeIdentifier)sheetName).LastSheetIdentifier.Name;}else{this.lastSheetName = null;}}
// Original:
public ModifyJumpserverPasswordRequest() {super("HPC", "2016-06-03", "ModifyJumpserverPassword", "hpc");setMethod(MethodType.POST);}

// Translation:
public ModifyJumpserverPasswordRequest(): base("HPC", "2016-06-03", "ModifyJumpserverPassword"){Method = MethodType.POST;}