mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 11:21:39 -10:00
- System.CodeDom: lotsa corrections - System.CodeDom.Compiler: CodeGenerator about 80% complete - Microsoft.CSharp: CSharpCodegenerator intro svn path=/trunk/mcs/; revision=4980
93 lines
1.7 KiB
C#
Executable File
93 lines
1.7 KiB
C#
Executable File
//
|
|
// 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();
|
|
if ( PopulateComments != null )
|
|
PopulateComments( this, EventArgs.Empty );
|
|
}
|
|
return comments;
|
|
}
|
|
}
|
|
|
|
public CodeNamespaceImportCollection Imports {
|
|
get {
|
|
if ( imports == null ) {
|
|
imports = new CodeNamespaceImportCollection();
|
|
if ( PopulateImports != null )
|
|
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();
|
|
if ( PopulateTypes != null )
|
|
PopulateTypes( this, EventArgs.Empty );
|
|
}
|
|
return types;
|
|
}
|
|
}
|
|
|
|
//
|
|
// Events
|
|
//
|
|
public event EventHandler PopulateComments;
|
|
|
|
public event EventHandler PopulateImports;
|
|
|
|
public event EventHandler PopulateTypes;
|
|
}
|
|
}
|