[Serializable] |
In some languages, a namespace can function as a container of type declarations within the same namespace, in which all types within the same namespace are visible.
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 CodeNamespace class. |
ctor #2 | Overloaded:.ctor(string name) Initializes a new instance of the CodeNamespace class using the specified name. |
Comments | Read-only Gets or sets the member comment collection members. |
Imports | Read-only Gets or sets the collection of namespace import directives used by the represented namespace. |
Name | Read-write Gets or sets the name of the namespace. |
Types | Read-only Gets the collection of types that the represented namespace contains. |
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. |
PopulateComments | An event that will be raised the first time the CodeNamespace.Comments collection is accessed. |
PopulateImports | An event that will be raised the first time the CodeNamespace.Imports collection is accessed. |
PopulateTypes | An event that will be raised the first time the CodeNamespace.Types 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 CodeNamespace(); |
public CodeNamespace( |
name
public CodeCommentStatementCollection Comments {get;}
|
public CodeNamespaceImportCollection Imports {get;}
|
public string Name {get; set;}
|
public CodeTypeDeclarationCollection Types {get;}
|
public IDictionary UserData {get;}
|
~CodeNamespace(); |
public virtual int GetHashCode(); |
public Type GetType(); |
protected object MemberwiseClone(); |
public virtual string ToString(); |
public event EventHandler PopulateComments;
|
public event EventHandler PopulateImports;
|
public event EventHandler PopulateTypes;
|