System.CodeDom.CodeConstructor Class

Represents a declaration for an instance constructor of a type.

See Also: CodeConstructor Members

Syntax

[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDispatch)]
[System.Runtime.InteropServices.ComVisible(true)]
public class CodeConstructor : CodeMemberMethod

Remarks

System.CodeDom.CodeConstructor can be used to represent a declaration of an instance constructor for a type. Use System.CodeDom.CodeTypeConstructor to declare a static constructor for a type.

If the constructor calls a base class constructor, set the constructor arguments for the base class constructor in the CodeConstructor.BaseConstructorArgs property. If the constructor overloads another constuctor for the type, set the constructor arguments to pass to the overloaded type constructor in the CodeConstructor.ChainedConstructorArgs property.

Requirements

Namespace: System.CodeDom
Assembly: System (in System.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0, 2.0.0.0, 4.0.0.0