System.CodeDom.CodeConstructor Class

Represents a declaration for an instance constructor of a type.

See Also: CodeConstructor Members


public class CodeConstructor : CodeMemberMethod


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.


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