yijunyu/c-to-rust huggingface dataset:
// Original:
public int indexOf(Object object) {if (object != null) {for (int i = 0; i < a.length; i++) {if (object.equals(a[i])) {return i;}}} else {for (int i = 0; i < a.length; i++) {if (a[i] == null) {return i;}}}return -1;}

// Translation:
public override int indexOf(object @object){if (@object != null){{for (int i = 0; i < a.Length; i++){if (@object.Equals(a[i])){return i;}}}}else{{for (int i = 0; i < a.Length; i++){if ((object)a[i] == null){return i;}}}}return -1;}
// Original:
public ListContactFlowsResult listContactFlows(ListContactFlowsRequest request) {request = beforeClientExecution(request);return executeListContactFlows(request);}

// Translation:
public virtual ListContactFlowsResponse ListContactFlows(ListContactFlowsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListContactFlowsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListContactFlowsResponseUnmarshaller.Instance;return Invoke<ListContactFlowsResponse>(request, options);}
// Original:
public int doLogic() throws IOException {String analyzerName = null;try {if (current >= analyzerNames.size()) {current = 0;}analyzerName = analyzerNames.get(current++);Analyzer analyzer = null;if (null == analyzerName || 0 == analyzerName.length()) {analyzerName = "org.apache.lucene.analysis.standard.StandardAnalyzer";}AnalyzerFactory factory = getRunData().getAnalyzerFactories().get(analyzerName);if (null != factory) {analyzer = factory.create();} else {if (analyzerName.contains(".")) {if (analyzerName.startsWith("standard.")) {analyzerName = "org.apache.lucene.analysis." + analyzerName;}analyzer = createAnalyzer(analyzerName);} else { try {String coreClassName = "org.apache.lucene.analysis.core." + analyzerName;analyzer = createAnalyzer(coreClassName);analyzerName = coreClassName;} catch (ClassNotFoundException e) {analyzerName = "org.apache.lucene.analysis." + analyzerName;analyzer = createAnalyzer(analyzerName);}}}getRunData().setAnalyzer(analyzer);} catch (Exception e) {throw new RuntimeException("Error creating Analyzer: " + analyzerName, e);}return 1;}

// Translation:
public override int DoLogic(){string analyzerName = null;try{if (current >= analyzerNames.Count){current = 0;}analyzerName = analyzerNames[current++];Analyzer analyzer = null;if (null == analyzerName || 0 == analyzerName.Length){analyzerName = typeof(Lucene.Net.Analysis.Standard.StandardAnalyzer).AssemblyQualifiedName;}AnalyzerFactory factory;if (RunData.AnalyzerFactories.TryGetValue(analyzerName, out factory) && null != factory){analyzer = factory.Create();}else{if (analyzerName.Contains(".")){if (analyzerName.StartsWith("Standard.", StringComparison.Ordinal)){analyzerName = "Lucene.Net.Analysis." + analyzerName;}analyzer = CreateAnalyzer(analyzerName);}else{ try{string coreClassName = "Lucene.Net.Analysis.Core." + analyzerName;analyzer = CreateAnalyzer(coreClassName);analyzerName = coreClassName;}catch (TypeLoadException ){analyzerName = "Lucene.Net.Analysis." + analyzerName;analyzer = CreateAnalyzer(analyzerName);}}}RunData.Analyzer = analyzer;}catch (Exception e){throw new Exception("Error creating Analyzer: " + analyzerName, e);}return 1;}
// Original:
public int serializeSimplePart( byte[] data, int offset ){LittleEndian.putShort(data, offset, getId());LittleEndian.putInt(data, offset + 2, propertyValue);return 6;}

// Translation:
public override int SerializeSimplePart(byte[] data, int offset){LittleEndian.PutShort(data, offset, Id);LittleEndian.PutInt(data, offset + 2, propertyValue);return 6;}
// Original:
public static short[] copyOf(short[] original, int newLength) {if (newLength < 0) {throw new NegativeArraySizeException();}return copyOfRange(original, 0, newLength);}

// Translation:
public static short[] copyOf(short[] original, int newLength){if (newLength < 0){throw new java.lang.NegativeArraySizeException();}return copyOfRange(original, 0, newLength);}
// Original:
@Override public Iterator<V> iterator() {return new ValueIterator();}

// Translation:
public override java.util.Iterator<V> iterator(){return new java.util.Hashtable<K, V>.ValueIterator(this._enclosing);}
// Original:
public boolean equals(Object obj) {if (this == obj) {return true;}if (!super.equals(obj)) {return false;}PrefixQuery other = (PrefixQuery) obj;if (!term.equals(other.term)) {return false;}return true;}

// Translation:
public override bool Equals(object obj){if (this == obj){return true;}if (!base.Equals(obj)){return false;}if (this.GetType() != obj.GetType()){return false;}PrefixQuery other = (PrefixQuery)obj;if (_prefix == null){if (other._prefix != null){return false;}}else if (!_prefix.Equals(other._prefix)){return false;}return true;}
// Original:
public boolean isSheetVeryHidden(int sheetnum) {return getBoundSheetRec(sheetnum).isVeryHidden();}

// Translation:
public bool IsSheetVeryHidden(int sheetnum){return GetBoundSheetRec(sheetnum).IsVeryHidden;}
// Original:
public UpdateAccessKeyRequest(String accessKeyId, StatusType status) {setAccessKeyId(accessKeyId);setStatus(status.toString());}

// Translation:
public UpdateAccessKeyRequest(string accessKeyId, StatusType status){_accessKeyId = accessKeyId;_status = status;}
// Original:
public static int countMatchingCellsInArea(ThreeDEval areaEval, I_MatchPredicate criteriaPredicate) {int result = 0;final int firstSheetIndex = areaEval.getFirstSheetIndex();final int lastSheetIndex = areaEval.getLastSheetIndex();for (int sIx = firstSheetIndex; sIx <= lastSheetIndex; sIx++) {int height = areaEval.getHeight();int width = areaEval.getWidth();for (int rrIx=0; rrIx<height; rrIx++) {for (int rcIx=0; rcIx<width; rcIx++) {ValueEval ve = areaEval.getValue(sIx, rrIx, rcIx);if(criteriaPredicate instanceof I_MatchAreaPredicate){I_MatchAreaPredicate areaPredicate = (I_MatchAreaPredicate)criteriaPredicate;if(!areaPredicate.matches(areaEval, rrIx, rcIx)) continue;}if(criteriaPredicate.matches(ve)) {result++;}}}}return result;}

// Translation:
public static int CountMatchingCellsInArea(ThreeDEval areaEval, IMatchPredicate criteriaPredicate){int result = 0;for (int sIx = areaEval.FirstSheetIndex; sIx <= areaEval.LastSheetIndex; sIx++){int height = areaEval.Height;int width = areaEval.Width;for (int rrIx = 0; rrIx < height; rrIx++){for (int rcIx = 0; rcIx < width; rcIx++){ValueEval ve = areaEval.GetValue(sIx, rrIx, rcIx);if (criteriaPredicate is I_MatchAreaPredicate){I_MatchAreaPredicate areaPredicate = (I_MatchAreaPredicate)criteriaPredicate;if (!areaPredicate.Matches(areaEval, rrIx, rcIx)) continue;}if (criteriaPredicate.Matches(ve)){result++;}}}}return result;}
// Original:
public PushCommand setRefSpecs(List<RefSpec> specs) {checkCallable();this.refSpecs.clear();this.refSpecs.addAll(specs);return this;}

// Translation:
public virtual NGit.Api.PushCommand SetRefSpecs(params RefSpec[] specs){CheckCallable();this.refSpecs.Clear();Sharpen.Collections.AddAll(refSpecs, specs);return this;}
// Original:
public EscherComplexProperty(short id, int complexSize) {super((short)(id | IS_COMPLEX));complexData = IOUtils.safelyAllocate(complexSize, MAX_RECORD_LENGTH);}

// Translation:
public EscherComplexProperty(short id, byte[] complexData): base(id){this._complexData = complexData;}
// Original:
public CreateNodeResult createNode(CreateNodeRequest request) {request = beforeClientExecution(request);return executeCreateNode(request);}

// Translation:
public virtual CreateNodeResponse CreateNode(CreateNodeRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateNodeRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateNodeResponseUnmarshaller.Instance;return Invoke<CreateNodeResponse>(request, options);}
// Original:
public Note call() throws GitAPIException {checkCallable();NoteMap map = NoteMap.newEmptyMap();RevCommit notesCommit = null;try (RevWalk walk = new RevWalk(repo)) {Ref ref = repo.exactRef(notesRef);if (ref != null) {notesCommit = walk.parseCommit(ref.getObjectId());map = NoteMap.read(walk.getObjectReader(), notesCommit);}return map.getNote(id);} catch (IOException e) {throw new JGitInternalException(e.getMessage(), e);}}

// Translation:
public override Note Call(){CheckCallable();RevWalk walk = new RevWalk(repo);NoteMap map = NoteMap.NewEmptyMap();RevCommit notesCommit = null;try{Ref @ref = repo.GetRef(notesRef);if (@ref != null){notesCommit = walk.ParseCommit(@ref.GetObjectId());map = NoteMap.Read(walk.GetObjectReader(), notesCommit);}return map.GetNote(id);}catch (IOException e){throw new JGitInternalException(e.Message, e);}finally{walk.Release();}}
// Original:
public void ReInit(CharStream stream){jjmatchedPos = jjnewStateCnt = 0;curLexState = defaultLexState;input_stream = stream;ReInitRounds();}

// Translation:
public virtual void ReInit(ICharStream stream){jjmatchedPos = jjnewStateCnt = 0;curLexState = defaultLexState;m_input_stream = stream;ReInitRounds();}
// Original:
public boolean add(char[] text) {return map.put(text, PLACEHOLDER) == null;}

// Translation:
public virtual bool Add(ICharSequence text){return map.Put(text);}
// Original:
public void setDeltaBaseCacheLimit(int newLimit) {deltaBaseCacheLimit = newLimit;}

// Translation:
public virtual void SetDeltaBaseCacheLimit(int newLimit){deltaBaseCacheLimit = newLimit;}
// Original:
public ServerException(String errCode, String errMsg, String requestId) {this(errCode, errMsg);this.setRequestId(requestId);}

// Translation:
public ServerException(string errorCode, string errorMessage, string requestId) :base(errorCode, errorMessage, requestId){RequestId = requestId;}
// Original:
final public SrndQuery NQuery() throws ParseException {SrndQuery q;ArrayList<SrndQuery> queries;Token dt;q = WQuery();label_5:while (true) {switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {case N:;break;default:jj_la1[3] = jj_gen;break label_5;}dt = jj_consume_token(N);queries = new ArrayList<SrndQuery>();queries.add(q); q = WQuery();queries.add(q);q = getDistanceQuery(queries, true , dt, false );}{if (true) return q;}throw new Error("Missing return statement in function");}

// Translation:
public SrndQuery NQuery(){SrndQuery q;IList<SrndQuery> queries;Token dt;q = WQuery();while (true){switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk){case RegexpToken.N:;break;default:jj_la1[3] = jj_gen;goto label_5;}dt = Jj_consume_token(RegexpToken.N);queries = new List<SrndQuery>();queries.Add(q); q = WQuery();queries.Add(q);q = GetDistanceQuery(queries, true , dt, false );}label_5:{ if (true) return q; }throw new Exception("Missing return statement in function");}
// Original:
public MoreLikeThisQuery(String likeText, String[] moreLikeFields, Analyzer analyzer, String fieldName) {this.likeText = Objects.requireNonNull(likeText);this.moreLikeFields = Objects.requireNonNull(moreLikeFields);this.analyzer = Objects.requireNonNull(analyzer);this.fieldName = Objects.requireNonNull(fieldName);}

// Translation:
public MoreLikeThisQuery(string likeText, string[] moreLikeFields, Analyzer analyzer, string fieldName){this.LikeText = likeText;this.MoreLikeFields = moreLikeFields;this.Analyzer = analyzer;this.fieldName = fieldName;}
// Original:
public DescribeImageAttributeResult describeImageAttribute(DescribeImageAttributeRequest request) {request = beforeClientExecution(request);return executeDescribeImageAttribute(request);}

// Translation:
public virtual DescribeImageAttributeResponse DescribeImageAttribute(DescribeImageAttributeRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeImageAttributeRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeImageAttributeResponseUnmarshaller.Instance;return Invoke<DescribeImageAttributeResponse>(request, options);}
// Original:
public void println(Object o) {println(String.valueOf(o));}

// Translation:
public virtual void println(object o){println(Sharpen.StringHelper.GetValueOf(o));}
// Original:
public DeregisterFromWorkMailResult deregisterFromWorkMail(DeregisterFromWorkMailRequest request) {request = beforeClientExecution(request);return executeDeregisterFromWorkMail(request);}

// Translation:
public virtual DeregisterFromWorkMailResponse DeregisterFromWorkMail(DeregisterFromWorkMailRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeregisterFromWorkMailRequestMarshaller.Instance;options.ResponseUnmarshaller = DeregisterFromWorkMailResponseUnmarshaller.Instance;return Invoke<DeregisterFromWorkMailResponse>(request, options);}
// Original:
public PutClusterCapacityProvidersResult putClusterCapacityProviders(PutClusterCapacityProvidersRequest request) {request = beforeClientExecution(request);return executePutClusterCapacityProviders(request);}

// Translation:
public virtual PutClusterCapacityProvidersResponse PutClusterCapacityProviders(PutClusterCapacityProvidersRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutClusterCapacityProvidersRequestMarshaller.Instance;options.ResponseUnmarshaller = PutClusterCapacityProvidersResponseUnmarshaller.Instance;return Invoke<PutClusterCapacityProvidersResponse>(request, options);}
// Original:
public ChangeMessageVisibilityBatchRequestEntry(String id, String receiptHandle) {setId(id);setReceiptHandle(receiptHandle);}

// Translation:
public ChangeMessageVisibilityBatchRequestEntry(string id, string receiptHandle){_id = id;_receiptHandle = receiptHandle;}
// Original:
public StringBuffer append(float f) {RealToString.getInstance().appendFloat(this, f);return this;}

// Translation:
public java.lang.StringBuffer append(bool b){return append(b ? "true" : "false");}
// Original:
@Override public int compare(T o1, T o2) {return cmp.compare(o2, o1);}

// Translation:
public int compare(T o1, T o2){return cmp.compare(o2, o1);}
// Original:
public GetAttributesRequest(String domainName, String itemName) {setDomainName(domainName);setItemName(itemName);}

// Translation:
public GetAttributesRequest(string domainName, string itemName){_domainName = domainName;_itemName = itemName;}
// Original:
public String toString() {return getClass().getName() +" [" +_firstMovedIndex +_lastMovedIndex +_amountToMove +"]";}

// Translation:
public override String ToString(){StringBuilder sb = new StringBuilder();sb.Append(GetType().Name);sb.Append(" [");sb.Append(_firstMovedIndex);sb.Append(_lastMovedIndex);sb.Append(_amountToMove);return sb.ToString();}
// Original:
public final ValueEval evaluate(ValueEval[] args, int srcCellRow, int srcCellCol) {double result;try {result = eval(args, srcCellRow, srcCellCol);checkValue(result);} catch (EvaluationException e) {return e.getErrorEval();}return new NumberEval(result);}

// Translation:
public ValueEval Evaluate(ValueEval[] args, int srcCellRow, int srcCellCol){double result;try{result = Eval(args, srcCellRow, srcCellCol);CheckValue(result);}catch (EvaluationException e){return e.GetErrorEval();}return new NumberEval(result);}
// Original:
public DescribeFpgaImagesResult describeFpgaImages(DescribeFpgaImagesRequest request) {request = beforeClientExecution(request);return executeDescribeFpgaImages(request);}

// Translation:
public virtual DescribeFpgaImagesResponse DescribeFpgaImages(DescribeFpgaImagesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeFpgaImagesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeFpgaImagesResponseUnmarshaller.Instance;return Invoke<DescribeFpgaImagesResponse>(request, options);}
// Original:
public ObjectDirectoryInserter newInserter() {return new ObjectDirectoryInserter(this, config);}

// Translation:
public override ObjectInserter NewInserter(){return new ObjectDirectoryInserter(this, config);}
// Original:
public LongBuffer put(int index, long c) {checkIndex(index);byteBuffer.putLong(index * SizeOf.LONG, c);return this;}

// Translation:
public override java.nio.LongBuffer put(int index, long c){checkIndex(index);byteBuffer.putLong(index * libcore.io.SizeOf.LONG, c);return this;}
// Original:
public boolean isRetainBody() {return retainBody;}

// Translation:
public virtual bool IsRetainBody(){return retainBody;}
// Original:
public AddApplicationVpcConfigurationResult addApplicationVpcConfiguration(AddApplicationVpcConfigurationRequest request) {request = beforeClientExecution(request);return executeAddApplicationVpcConfiguration(request);}

// Translation:
public virtual AddApplicationVpcConfigurationResponse AddApplicationVpcConfiguration(AddApplicationVpcConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = AddApplicationVpcConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = AddApplicationVpcConfigurationResponseUnmarshaller.Instance;return Invoke<AddApplicationVpcConfigurationResponse>(request, options);}
// Original:
public Entry<K, V> next() { return nextEntry(); }

// Translation:
public override java.util.MapClass.Entry<K, V> next(){return this.nextEntry();}
// Original:
public SpreadsheetVersion getSpreadsheetVersion(){return SpreadsheetVersion.EXCEL97;}

// Translation:
public SpreadsheetVersion GetSpreadsheetVersion(){return SpreadsheetVersion.EXCEL2007;}
// Original:
public String[] promptKeyboardInteractive(String destination, String name,String instruction, String[] prompt, boolean[] echo) {CredentialItem.StringType[] v = new CredentialItem.StringType[prompt.length];for (int i = 0; i < prompt.length; i++)v[i] = new CredentialItem.StringType(prompt[i], !echo[i]);List<CredentialItem> items = new ArrayList<>();if (instruction != null && instruction.length() > 0)items.add(new CredentialItem.InformationalMessage(instruction));items.addAll(Arrays.asList(v));if (!provider.get(uri, items))return null; String[] result = new String[v.length];for (int i = 0; i < v.length; i++)result[i] = v[i].getValue();return result;}

// Translation:
public virtual string[] PromptKeyboardInteractive(string destination, string name, string instruction, string[] prompt, bool[] echo){CredentialItem.StringType[] v = new CredentialItem.StringType[prompt.Length];for (int i = 0; i < prompt.Length; i++){v[i] = new CredentialItem.StringType(prompt[i], !echo[i]);}IList<CredentialItem> items = new AList<CredentialItem>();if (instruction != null && instruction.Length > 0){items.AddItem(new CredentialItem.InformationalMessage(instruction));}Sharpen.Collections.AddAll(items, Arrays.AsList(v));if (!provider.Get(uri, items)){return null;}string[] result = new string[v.Length];for (int i_1 = 0; i_1 < v.Length; i_1++){result[i_1] = v[i_1].GetValue();}return result;}
// Original:
public static synchronized MergeStrategy get(String name) {return STRATEGIES.get(name);}

// Translation:
public static MergeStrategy Get(string name){lock (typeof(MergeStrategy)){return STRATEGIES.Get(name);}}
// Original:
public AssociateConnectionWithLagResult associateConnectionWithLag(AssociateConnectionWithLagRequest request) {request = beforeClientExecution(request);return executeAssociateConnectionWithLag(request);}

// Translation:
public virtual AssociateConnectionWithLagResponse AssociateConnectionWithLag(AssociateConnectionWithLagRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateConnectionWithLagRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateConnectionWithLagResponseUnmarshaller.Instance;return Invoke<AssociateConnectionWithLagResponse>(request, options);}
// Original:
public short getShortValue(final short holder){return ( short ) getValue(holder);}

// Translation:
public short GetShortValue(short holder){return (short)this.GetValue(holder);}
// Original:
public static BreakIterator getSentenceInstance() {return getSentenceInstance(Locale.getDefault());}

// Translation:
public static java.text.BreakIterator getSentenceInstance(){return getSentenceInstance(System.Globalization.CultureInfo.CurrentCulture);}
// Original:
public MissingObjectException(ObjectId id, String type) {super(MessageFormat.format(JGitText.get().missingObject, type, id.name()));missing = id.copy();}

// Translation:
public MissingObjectException(ObjectId id, string type) : base(MessageFormat.Format(JGitText.Get().missingObject, type, id.Name)){missing = id.Copy();}
// Original:
public PipedReader(PipedWriter out, int pipeSize) throws IOException {this(pipeSize);connect(out);}

// Translation:
public PipedReader(java.io.PipedWriter @out, int pipeSize) : this(pipeSize){throw new System.NotImplementedException();}
// Original:
public ImportKeyPairRequest(String keyName, String publicKeyMaterial) {setKeyName(keyName);setPublicKeyMaterial(publicKeyMaterial);}

// Translation:
public ImportKeyPairRequest(string keyName, string publicKeyMaterial){_keyName = keyName;_publicKeyMaterial = publicKeyMaterial;}
// Original:
public DeleteFaceRequest() {super("LinkFace", "2018-07-20", "DeleteFace");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}

// Translation:
public DeleteFaceRequest(): base("LinkFace", "2018-07-20", "DeleteFace"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}
// Original:
public CreateReceiptRuleSetResult createReceiptRuleSet(CreateReceiptRuleSetRequest request) {request = beforeClientExecution(request);return executeCreateReceiptRuleSet(request);}

// Translation:
public virtual CreateReceiptRuleSetResponse CreateReceiptRuleSet(CreateReceiptRuleSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateReceiptRuleSetRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateReceiptRuleSetResponseUnmarshaller.Instance;return Invoke<CreateReceiptRuleSetResponse>(request, options);}
// Original:
public RemovePermissionRequest(String queueUrl, String label) {setQueueUrl(queueUrl);setLabel(label);}

// Translation:
public RemovePermissionRequest(string queueUrl, string label){_queueUrl = queueUrl;_label = label;}
// Original:
public String toString() {return "DFR " + basicModel.toString() + afterEffect.toString()+ normalization.toString();}

// Translation:
public override string ToString(){return "DFR " + m_basicModel.ToString() + m_afterEffect.ToString() + m_normalization.ToString();}
// Original:
public void setResult(RefUpdate.Result r) {switch (r) {case NOT_ATTEMPTED:setResult(Result.NOT_ATTEMPTED);break;case LOCK_FAILURE:case IO_FAILURE:setResult(Result.LOCK_FAILURE);break;case NO_CHANGE:case NEW:case FORCED:case FAST_FORWARD:setResult(Result.OK);break;case REJECTED:setResult(Result.REJECTED_NONFASTFORWARD);break;case REJECTED_CURRENT_BRANCH:setResult(Result.REJECTED_CURRENT_BRANCH);break;case REJECTED_MISSING_OBJECT:setResult(Result.REJECTED_MISSING_OBJECT);break;case REJECTED_OTHER_REASON:setResult(Result.REJECTED_OTHER_REASON);break;default:setResult(Result.REJECTED_OTHER_REASON, r.name());break;}}

// Translation:
public virtual void SetResult(RefUpdate.Result r){switch (r){case RefUpdate.Result.NOT_ATTEMPTED:{SetResult(ReceiveCommand.Result.NOT_ATTEMPTED);break;}case RefUpdate.Result.LOCK_FAILURE:case RefUpdate.Result.IO_FAILURE:{SetResult(ReceiveCommand.Result.LOCK_FAILURE);break;}case RefUpdate.Result.NO_CHANGE:case RefUpdate.Result.NEW:case RefUpdate.Result.FORCED:case RefUpdate.Result.FAST_FORWARD:{SetResult(ReceiveCommand.Result.OK);break;}case RefUpdate.Result.REJECTED:{SetResult(ReceiveCommand.Result.REJECTED_NONFASTFORWARD);break;}case RefUpdate.Result.REJECTED_CURRENT_BRANCH:{SetResult(ReceiveCommand.Result.REJECTED_CURRENT_BRANCH);break;}default:{SetResult(ReceiveCommand.Result.REJECTED_OTHER_REASON, r.ToString());break;break;}}}
// Original:
public DeleteMatchmakingConfigurationResult deleteMatchmakingConfiguration(DeleteMatchmakingConfigurationRequest request) {request = beforeClientExecution(request);return executeDeleteMatchmakingConfiguration(request);}

// Translation:
public virtual DeleteMatchmakingConfigurationResponse DeleteMatchmakingConfiguration(DeleteMatchmakingConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteMatchmakingConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteMatchmakingConfigurationResponseUnmarshaller.Instance;return Invoke<DeleteMatchmakingConfigurationResponse>(request, options);}