| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- //
- // System.CodeDom CodeNamespace Class implementation
- //
- // Author:
- // Miguel de Icaza ([email protected])
- // Daniel Stodden ([email protected])
- //
- // (C) 2001 Ximian, Inc.
- //
- using System.Runtime.InteropServices;
- namespace System.CodeDom
- {
- [Serializable]
- [ClassInterface(ClassInterfaceType.AutoDispatch)]
- [ComVisible(true)]
- public class CodeNamespace
- : CodeObject
- {
- private CodeCommentStatementCollection comments;
- private CodeNamespaceImportCollection imports;
- private CodeTypeDeclarationCollection types;
- private string name;
- //
- // Constructors
- //
- public CodeNamespace()
- {
- }
- public CodeNamespace(string name)
- {
- this.name = name;
- }
- //
- // Properties
- //
- public CodeCommentStatementCollection Comments {
- get {
- if ( comments == null ) {
- comments = new CodeCommentStatementCollection();
- PopulateComments( this, EventArgs.Empty );
- }
- return comments;
- }
- }
- public CodeNamespaceImportCollection Imports {
- get {
- if ( imports == null ) {
- imports = new CodeNamespaceImportCollection();
- PopulateImports( this, EventArgs.Empty );
- }
- return imports;
- }
- }
- public string Name {
- get {
- return name;
- }
- set {
- name = value;
- }
- }
- public CodeTypeDeclarationCollection Types {
- get {
- if ( types == null ) {
- types = new CodeTypeDeclarationCollection();
- PopulateTypes( this, EventArgs.Empty );
- }
- return types;
- }
- }
- //
- // Events
- //
- public event EventHandler PopulateComments;
-
- public event EventHandler PopulateImports;
-
- public event EventHandler PopulateTypes;
- }
- }
|