CodeGenerator.GenerateConstructor(CodeConstructor, CodeTypeDeclaration) 方法
定义
为指定的构造函数生成代码。Generates code for the specified constructor.
protected:
abstract void GenerateConstructor(System::CodeDom::CodeConstructor ^ e, System::CodeDom::CodeTypeDeclaration ^ c);
protected abstract void GenerateConstructor (System.CodeDom.CodeConstructor e, System.CodeDom.CodeTypeDeclaration c);
abstract member GenerateConstructor : System.CodeDom.CodeConstructor * System.CodeDom.CodeTypeDeclaration -> unit
Protected MustOverride Sub GenerateConstructor (e As CodeConstructor, c As CodeTypeDeclaration)
参数
要为其生成代码的构造函数。The constructor to generate code for.
此构造函数构造的对象类型。The type of the object that this constructor constructs.