public void SetFunctionType(FunctionType type) { this.type = type; // Update the argument array. int count = type.GetArgumentCount(); arguments = new ArgumentData[count]; for(int i = 0; i < count; ++i) { ArgumentData arg = new ArgumentData(type.GetArgument(i), i); arguments[i] = arg; } }