[Serializable] |
ctor #1 | Default constructor. This constructor is called by derived class constructors to initialize state in this type. Initializes a new instance of the CodeConstructor class. |
Attributes (inherited from System.CodeDom.CodeTypeMember) |
Read-write See base class member description: System.CodeDom.CodeTypeMember.Attributes Gets or sets the attributes of the member. |
BaseConstructorArgs | Read-only Gets the collection of base constructor arguments. |
ChainedConstructorArgs | Read-only Gets the collection of chained constructor arguments. |
Comments (inherited from System.CodeDom.CodeTypeMember) |
Read-only See base class member description: System.CodeDom.CodeTypeMember.Comments Gets the comment collection for the type member. |
CustomAttributes (inherited from System.CodeDom.CodeTypeMember) |
Read-write See base class member description: System.CodeDom.CodeTypeMember.CustomAttributes Gets or sets the custom attributes of the member. |
ImplementationTypes (inherited from System.CodeDom.CodeMemberMethod) |
Read-only See base class member description: System.CodeDom.CodeMemberMethod.ImplementationTypes Gets the data types of the interfaces implemented by this method, unless it is a private method implementation, which is indicated by the CodeMemberMethod.PrivateImplementationType property. |
LinePragma (inherited from System.CodeDom.CodeTypeMember) |
Read-write See base class member description: System.CodeDom.CodeTypeMember.LinePragma Gets or sets the line the statement occurs on. |
Name (inherited from System.CodeDom.CodeTypeMember) |
Read-write See base class member description: System.CodeDom.CodeTypeMember.Name Gets or sets the name of the member. |
Parameters (inherited from System.CodeDom.CodeMemberMethod) |
Read-only See base class member description: System.CodeDom.CodeMemberMethod.Parameters Gets the parameter declarations for the method. |
PrivateImplementationType (inherited from System.CodeDom.CodeMemberMethod) |
Read-write See base class member description: System.CodeDom.CodeMemberMethod.PrivateImplementationType Gets or sets the data type of the interface this method, if private, implements a method of, if any. |
ReturnType (inherited from System.CodeDom.CodeMemberMethod) |
Read-write See base class member description: System.CodeDom.CodeMemberMethod.ReturnType Gets or sets the data type of the return value of the method. |
ReturnTypeCustomAttributes (inherited from System.CodeDom.CodeMemberMethod) |
Read-only See base class member description: System.CodeDom.CodeMemberMethod.ReturnTypeCustomAttributes Gets the custom attributes of the return type of the method. |
Statements (inherited from System.CodeDom.CodeMemberMethod) |
Read-only See base class member description: System.CodeDom.CodeMemberMethod.Statements Gets the statements within the method. |
UserData (inherited from System.CodeDom.CodeObject) |
Read-only See base class member description: System.CodeDom.CodeObject.UserData Gets or sets the user-definable data for the current object. |
Equals (inherited from System.Object) |
See base class member description: System.Object.Equals Derived from System.Object, the primary base class for all objects. |
GetHashCode (inherited from System.Object) |
See base class member description: System.Object.GetHashCode Derived from System.Object, the primary base class for all objects. |
GetType (inherited from System.Object) |
See base class member description: System.Object.GetType Derived from System.Object, the primary base class for all objects. |
ToString (inherited from System.Object) |
See base class member description: System.Object.ToString Derived from System.Object, the primary base class for all objects. |
PopulateImplementationTypes (inherited from System.CodeDom.CodeMemberMethod) |
See base class member description: System.CodeDom.CodeMemberMethod.PopulateImplementationTypes An event that will be raised the first time the CodeMemberMethod.ImplementationTypes collection is accessed. |
PopulateParameters (inherited from System.CodeDom.CodeMemberMethod) |
See base class member description: System.CodeDom.CodeMemberMethod.PopulateParameters An event that will be raised the first time the CodeMemberMethod.Parameters collection is accessed. |
PopulateStatements (inherited from System.CodeDom.CodeMemberMethod) |
See base class member description: System.CodeDom.CodeMemberMethod.PopulateStatements An event that will be raised the first time the CodeMemberMethod.Statements collection is accessed. |
Finalize (inherited from System.Object) |
See base class member description: System.Object.Finalize Derived from System.Object, the primary base class for all objects. |
MemberwiseClone (inherited from System.Object) |
See base class member description: System.Object.MemberwiseClone Derived from System.Object, the primary base class for all objects. |
Hierarchy:
public CodeConstructor(); |
public MemberAttributes Attributes {get; set;}
|
public CodeExpressionCollection BaseConstructorArgs {get;}
|
public CodeExpressionCollection ChainedConstructorArgs {get;}
|
public CodeCommentStatementCollection Comments {get;}
|
public CodeAttributeDeclarationCollection CustomAttributes {get; set;}
|
public CodeTypeReferenceCollection ImplementationTypes {get;}
|
If this CodeMemberMethod represents a declaration for a public method, and this method implements a method on an interface, the interface or interfaces this method implements a method of should be referenced in this collection.
The method should still have the same name as the method of the interface that is implemented by this method. For some languages, like C#, this has no effect on the syntax. For others, like Visual Basic, there is a special syntax for implementing interfaces. If the method is privately implementing a single interface, the CodeMemberMethod.PrivateImplementationType property should be used instead.
public CodeLinePragma LinePragma {get; set;}
|
public string Name {get; set;}
|
public CodeParameterDeclarationExpressionCollection Parameters {get;}
|
public CodeTypeReference PrivateImplementationType {get; set;}
|
The type referenced by this property must be an interface.
public CodeTypeReference ReturnType {get; set;}
|
public CodeAttributeDeclarationCollection ReturnTypeCustomAttributes {get;}
|
public CodeStatementCollection Statements {get;}
|
public IDictionary UserData {get;}
|
~CodeConstructor(); |
public virtual int GetHashCode(); |
public Type GetType(); |
protected object MemberwiseClone(); |
public virtual string ToString(); |
public event EventHandler PopulateImplementationTypes;
|
public event EventHandler PopulateParameters;
|
public event EventHandler PopulateStatements;
|