[Serializable] |
A CodeSnippetCompileUnit 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 | Initializes a new instance of the CodeSnippetCompileUnit class. |
AssemblyCustomAttributes (inherited from System.CodeDom.CodeCompileUnit) |
Read-only See base class member description: System.CodeDom.CodeCompileUnit.AssemblyCustomAttributes Gets a collection of custom attributes for the collection of assemblies. |
LinePragma | Read-write Gets or sets the line and file information about where the code is located in a source code document. |
Namespaces (inherited from System.CodeDom.CodeCompileUnit) |
Read-only See base class member description: System.CodeDom.CodeCompileUnit.Namespaces Gets the collection of namespaces. |
ReferencedAssemblies (inherited from System.CodeDom.CodeCompileUnit) |
Read-only See base class member description: System.CodeDom.CodeCompileUnit.ReferencedAssemblies Gets the referenced assemblies. |
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. |
Value | Read-write Gets or sets the literal code fragment to represent. |
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 CodeSnippetCompileUnit( |
value
public CodeAttributeDeclarationCollection AssemblyCustomAttributes {get;}
|
public CodeLinePragma LinePragma {get; set;}
|
public CodeNamespaceCollection Namespaces {get;}
|
public StringCollection ReferencedAssemblies {get;}
|
public IDictionary UserData {get;}
|
public string Value {get; set;}
|
~CodeSnippetCompileUnit(); |
public virtual int GetHashCode(); |
public Type GetType(); |
protected object MemberwiseClone(); |
public virtual string ToString(); |