Mono Class Library: System.CodeDom.CodeNamespace Overview | Members

System.CodeDom.CodeNamespace.Imports Property

Collection of imports applicable to the namespace [Edit]

public CodeNamespaceImportCollection Imports { get; }

Value

System.CodeDom.CodeNamespaceImportCollection object, which is a collection of imports applicable to the namespace. [Edit]

Remarks

C# Example
/*	Creates namespace like thus when c# code is generated.
/*	namespace Mono.CodeDomDemo {
/*		using System.Data;
/*	}
...
CodeNamespace demoNs= new CodeNamespace("Mono.CodeDomDemo");
demoNs.Imports.Add(new CodeNamespaceImport("System.Data"));
...
[Edit]

Requirements

Namespace: System.CodeDom
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0