Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / CodeDOM / CodeCompileUnit.cs / 1 / CodeCompileUnit.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- 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; ////// [ 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; ////// Represents a /// compilation unit declaration. /// ////// public CodeCompileUnit() { } ////// Initializes a new instance of ///. /// /// public CodeNamespaceCollection Namespaces { get { return namespaces; } } ////// Gets or sets the collection of namespaces. /// ////// public StringCollection ReferencedAssemblies { get { if (assemblies == null) { assemblies = new StringCollection(); } return assemblies; } } ////// 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. /// ////// 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 ; } } } }/// Gets the collection of assembly level attributes. /// ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DecimalStorage.cs
- AsymmetricKeyExchangeFormatter.cs
- PrintDocument.cs
- MaskInputRejectedEventArgs.cs
- TextEffect.cs
- DocumentPageView.cs
- XmlNodeChangedEventArgs.cs
- Bits.cs
- DefaultProxySection.cs
- XmlTextReaderImpl.cs
- PropertyPushdownHelper.cs
- InkPresenterAutomationPeer.cs
- Pens.cs
- SqlCacheDependency.cs
- ExternalFile.cs
- ObjectNavigationPropertyMapping.cs
- ResizeGrip.cs
- Int16Animation.cs
- DataGridViewEditingControlShowingEventArgs.cs
- SafeHandles.cs
- Figure.cs
- SqlProvider.cs
- LocalizationComments.cs
- InvalidComObjectException.cs
- XamlVector3DCollectionSerializer.cs
- DrawingCollection.cs
- DefaultProxySection.cs
- QueryContinueDragEventArgs.cs
- CustomError.cs
- Attributes.cs
- HttpApplication.cs
- TemplatePartAttribute.cs
- XmlILStorageConverter.cs
- dsa.cs
- DataGridViewRow.cs
- BamlResourceDeserializer.cs
- TagPrefixCollection.cs
- Msec.cs
- FlowDocument.cs
- TitleStyle.cs
- DesignBindingConverter.cs
- BindingExpressionBase.cs
- PseudoWebRequest.cs
- MailAddressCollection.cs
- ContentControl.cs
- WebColorConverter.cs
- SortedDictionary.cs
- FilterQuery.cs
- PointLightBase.cs
- WebBrowserProgressChangedEventHandler.cs
- DocumentPageHost.cs
- ColumnTypeConverter.cs
- RawStylusInputCustomDataList.cs
- MarginsConverter.cs
- EventLogQuery.cs
- XsdDateTime.cs
- ConversionContext.cs
- TypeConverterHelper.cs
- Walker.cs
- ColorBlend.cs
- NamespaceQuery.cs
- XmlWrappingWriter.cs
- CodeDirectoryCompiler.cs
- RIPEMD160Managed.cs
- CrossSiteScriptingValidation.cs
- XmlLinkedNode.cs
- FocusWithinProperty.cs
- StatusInfoItem.cs
- TreeNodeBinding.cs
- DesignerActionMethodItem.cs
- WebBaseEventKeyComparer.cs
- MembershipUser.cs
- DataServiceBehavior.cs
- SafeThreadHandle.cs
- ContextMenuAutomationPeer.cs
- BindingMemberInfo.cs
- EntityTypeEmitter.cs
- StackSpiller.cs
- ProvideValueServiceProvider.cs
- ComboBox.cs
- TimeSpanStorage.cs
- UserInitiatedNavigationPermission.cs
- SafeReversePInvokeHandle.cs
- UnsafeNativeMethods.cs
- DecoderReplacementFallback.cs
- DrawingGroup.cs
- EncryptedPackageFilter.cs
- ReflectionTypeLoadException.cs
- HeaderedContentControl.cs
- BrowserCapabilitiesFactoryBase.cs
- ExpressionDumper.cs
- CodeBlockBuilder.cs
- EntryWrittenEventArgs.cs
- SerializerProvider.cs
- SiteIdentityPermission.cs
- InertiaTranslationBehavior.cs
- Queue.cs
- FullTextBreakpoint.cs
- RuntimeArgumentHandle.cs
- AstNode.cs