public virtual CodeConditionStatement FinishInArguments(string idlMethodName, MarshalBuilderHelper codebuilder, CodeConditionStatement condMethodSignature , CodeConditionStatement condIn, CodeConditionStatement condInIter, CodeThrowExceptionStatement throwargInPrev) { if (condIn != null) // If got arguments to add { if (condInIter != null && condInIter != condIn) // If multiple arguments { // Check the final argument is ok. // * if (this.result != 0) { throw UdbusMessageMethodArgumentInException.Create(...); } condInIter.TrueStatements.Add(codebuilder.ThrowArgInException(throwargInPrev)); } // Ends if multiple arguments condMethodSignature.TrueStatements.Add(condIn); condIn = condMethodSignature; CodeConditionStatement condMethodResult = codebuilder.AddBodyLength(idlMethodName); condMethodResult.TrueStatements.Add(condIn); condIn = condMethodResult; } // Ends if got arguments to add return condIn; }