[Serializable] |
A CodeSnippetTypeMember stores a section of code, exactly in its original format, as a string. The CodeDOM does not translate literal code fragments. Literal code fragments are stored and output in their original format. CodeDOM objects that contain literal code are provided so developers can encapsulate code that is already in the target language.
ctor #1 | Overloaded:.ctor() Default constructor. This constructor is called by derived class constructors to initialize state in this type.Initializes a new instance of the CodeSnippetTypeMember class. |
ctor #2 | Overloaded:.ctor(string text) Initializes a new instance of the CodeSnippetTypeMember class using the specified text. |
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. |
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. |
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. |
Text | Read-write Gets or sets the literal code fragment for the class member. |
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. |
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 CodeSnippetTypeMember(); |
public CodeSnippetTypeMember( |
text
public MemberAttributes Attributes {get; set;}
|
public CodeCommentStatementCollection Comments {get;}
|
public CodeAttributeDeclarationCollection CustomAttributes {get; set;}
|
public CodeLinePragma LinePragma {get; set;}
|
public string Name {get; set;}
|
public string Text {get; set;}
|
public IDictionary UserData {get;}
|
~CodeSnippetTypeMember(); |
public virtual int GetHashCode(); |
public Type GetType(); |
protected object MemberwiseClone(); |
public virtual string ToString(); |