22 private int populated;
24 private const int ImportsCollection = 1;
26 private const int CommentsCollection = 2;
28 private const int TypesCollection = 4;
36 if ((populated & 4) == 0)
54 if ((populated & 1) == 0)
90 if ((populated & 2) == 0)
CodeNamespace()
Initializes a new instance of the T:System.CodeDom.CodeNamespace class.
CodeCommentStatementCollection Comments
Gets the comments for the namespace.
Represents the base class for classes that contain event data, and provides a value to use for events...
Describes the source and destination of a given serialized stream, and provides an additional caller-...
static readonly EventArgs Empty
Provides a value to use with events that do not have event data.
EventHandler PopulateImports
An event that will be raised the first time the P:System.CodeDom.CodeNamespace.Imports collection is ...
delegate void EventHandler(object sender, EventArgs e)
Represents the method that will handle an event that has no event data.
Represents a collection of T:System.CodeDom.CodeNamespaceImport objects.
EventHandler PopulateTypes
An event that will be raised the first time the P:System.CodeDom.CodeNamespace.Types collection is ac...
Stores all the data needed to serialize or deserialize an object. This class cannot be inherited.
Represents a namespace declaration.
EventHandler PopulateComments
An event that will be raised the first time the P:System.CodeDom.CodeNamespace.Comments collection is...
Represents a collection of T:System.CodeDom.CodeNamespace objects.
CodeNamespace(string name)
Initializes a new instance of the T:System.CodeDom.CodeNamespace class using the specified name.
Specifies that the class can be serialized.
ClassInterfaceType
Identifies the type of class interface that is generated for a class.
string Name
Gets or sets the name of the namespace.
CodeNamespaceImportCollection Imports
Gets the collection of namespace import directives used by the namespace.
Provides a common base class for most Code Document Object Model (CodeDOM) objects.
CodeTypeDeclarationCollection Types
Gets the collection of types that the namespace contains.
Represents a collection of T:System.CodeDom.CodeTypeDeclaration objects.