File: System\CodeDom\CodeCompileUnit.cs
Web Access
Project: src\src\libraries\System.CodeDom\src\System.CodeDom.csproj (System.CodeDom)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
using System.Collections.Specialized;
 
namespace System.CodeDom
{
    public class CodeCompileUnit : CodeObject
    {
        private StringCollection _assemblies;
        private CodeAttributeDeclarationCollection _attributes;
 
        private CodeDirectiveCollection _startDirectives;
        private CodeDirectiveCollection _endDirectives;
 
        public CodeCompileUnit() { }
 
        public CodeNamespaceCollection Namespaces { get; } = new CodeNamespaceCollection();
 
        public StringCollection ReferencedAssemblies => _assemblies ??= new StringCollection();
 
        public CodeAttributeDeclarationCollection AssemblyCustomAttributes => _attributes ??= new CodeAttributeDeclarationCollection();
 
        public CodeDirectiveCollection StartDirectives => _startDirectives ??= new CodeDirectiveCollection();
 
        public CodeDirectiveCollection EndDirectives => _endDirectives ??= new CodeDirectiveCollection();
    }
}