Exemple #1
0
 public SrcMethod(string returnType, string methodName, SrcVariable methodVariable, string methodBody)
 {
     this.MethodName      = methodName;
     this.MethodVariables = (methodVariable == null) ? new SrcVariable[0] : new SrcVariable[] { methodVariable };
     this.MethodBody      = methodBody;
     this.ReturnType      = returnType;
 }
Exemple #2
0
 public SrcMethod(string returnType, string methodName, SrcVariable methodVariableA, SrcVariable methodVariableB, SrcVariable methodVariableC, SrcVariable methodVariableD, string methodBody)
 {
     this.MethodName      = methodName;
     this.MethodVariables = new SrcVariable[] { methodVariableA, methodVariableB, methodVariableC, methodVariableD };
     this.MethodBody      = methodBody;
     this.ReturnType      = returnType;
 }
Exemple #3
0
 public SrcMethod(string methodName, SrcVariable methodVariableA, SrcVariable methodVariableB, SrcVariable methodVariableC, string methodBody)
 {
     this.MethodName      = methodName;
     this.MethodVariables = new SrcVariable[] { methodVariableA, methodVariableB, methodVariableC };
     this.MethodBody      = methodBody;
     this.ReturnType      = "void";
 }