CodeTypeMember Class
Provides a base class for a member of a type. Type members include fields, methods, properties, constructors and nested types.
Assembly: System (in System.dll)
| Name | Description | |
|---|---|---|
![]() | CodeTypeMember() | Initializes a new instance of the CodeTypeMember class. |
| Name | Description | |
|---|---|---|
![]() | Attributes | Gets or sets the attributes of the member. |
![]() | Comments | Gets the collection of comments for the type member. |
![]() | CustomAttributes | Gets or sets the custom attributes of the member. |
![]() | EndDirectives | Gets the end directives for the member. |
![]() | LinePragma | Gets or sets the line on which the type member statement occurs. |
![]() | Name | Gets or sets the name of the member. |
![]() | StartDirectives | Gets the start directives for the member. |
![]() | UserData | Gets the user-definable data for the current object.(Inherited from CodeObject.) |
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | MemberwiseClone() | |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
The CodeTypeMember class can be used to represent the declaration for a member of a type. CodeTypeMember is a base class from which more specific types of members are derived, such as CodeMemberField and CodeMemberMethod. This class contains properties and methods common to all type members.
Available since 1.1
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


