You've already forked linux-packaging-mono
Imported Upstream version 4.6.0.125
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
This commit is contained in:
parent
a569aebcfd
commit
e79aa3c0ed
@ -0,0 +1,109 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <copyright file="CodeCompileUnit.cs" company="Microsoft">
|
||||
//
|
||||
// <OWNER>[....]</OWNER>
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// </copyright>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace System.CodeDom {
|
||||
|
||||
using System.Diagnostics;
|
||||
using System;
|
||||
using Microsoft.Win32;
|
||||
using System.Collections;
|
||||
using System.Collections.Specialized;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
/// <devdoc>
|
||||
/// <para>
|
||||
/// Represents a
|
||||
/// compilation unit declaration.
|
||||
/// </para>
|
||||
/// </devdoc>
|
||||
[
|
||||
ClassInterface(ClassInterfaceType.AutoDispatch),
|
||||
ComVisible(true),
|
||||
Serializable,
|
||||
]
|
||||
public class CodeCompileUnit: CodeObject {
|
||||
private CodeNamespaceCollection namespaces = new CodeNamespaceCollection();
|
||||
private StringCollection assemblies = null;
|
||||
private CodeAttributeDeclarationCollection attributes = null;
|
||||
|
||||
// Optionally Serializable
|
||||
[OptionalField]
|
||||
private CodeDirectiveCollection startDirectives = null;
|
||||
[OptionalField]
|
||||
private CodeDirectiveCollection endDirectives = null;
|
||||
|
||||
/// <devdoc>
|
||||
/// <para>
|
||||
/// Initializes a new instance of <see cref='System.CodeDom.CodeCompileUnit'/>.
|
||||
/// </para>
|
||||
/// </devdoc>
|
||||
public CodeCompileUnit() {
|
||||
}
|
||||
|
||||
/// <devdoc>
|
||||
/// <para>
|
||||
/// Gets or sets the collection of namespaces.
|
||||
/// </para>
|
||||
/// </devdoc>
|
||||
public CodeNamespaceCollection Namespaces {
|
||||
get {
|
||||
return namespaces;
|
||||
}
|
||||
}
|
||||
|
||||
/// <devdoc>
|
||||
/// <para>
|
||||
/// Gets the collection of assemblies. Most code generators will not need this, but the Managed
|
||||
/// extensions for C++ code generator and
|
||||
/// other very low level code generators will need to do a more complete compilation. If both this
|
||||
/// and the compiler assemblies are specified, the compiler assemblies should win.
|
||||
/// </para>
|
||||
/// </devdoc>
|
||||
public StringCollection ReferencedAssemblies {
|
||||
get {
|
||||
if (assemblies == null) {
|
||||
assemblies = new StringCollection();
|
||||
}
|
||||
return assemblies;
|
||||
}
|
||||
}
|
||||
|
||||
/// <devdoc>
|
||||
/// <para>
|
||||
/// Gets the collection of assembly level attributes.
|
||||
/// </para>
|
||||
/// </devdoc>
|
||||
public CodeAttributeDeclarationCollection AssemblyCustomAttributes {
|
||||
get {
|
||||
if (attributes == null) {
|
||||
attributes = new CodeAttributeDeclarationCollection();
|
||||
}
|
||||
return attributes;
|
||||
}
|
||||
}
|
||||
|
||||
public CodeDirectiveCollection StartDirectives {
|
||||
get {
|
||||
if (startDirectives == null) {
|
||||
startDirectives = new CodeDirectiveCollection();
|
||||
}
|
||||
return startDirectives;
|
||||
}
|
||||
}
|
||||
|
||||
public CodeDirectiveCollection EndDirectives {
|
||||
get {
|
||||
if (endDirectives == null) {
|
||||
endDirectives = new CodeDirectiveCollection();
|
||||
}
|
||||
return endDirectives ;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user