private MethodTemplate(Builder builder, TypeReference returnType, string name) { this._returnType = returnType; this._name = name; this._declaration = builder.Declaration(); this._parameters = builder.Parameters; this._statements = builder.Statements.ToArray(); this._modifiers = builder.ModifiersConflict; }
public virtual CodeBlock Generate(MethodDeclaration.Builder builder) { return(Generate(builder.Build(_handle))); }