Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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 ; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// Gets the collection of assembly level attributes. /// ///// 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 ; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// Gets the collection of assembly level attributes. /// ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WebServiceMethodData.cs
- ThreadAttributes.cs
- LinkConverter.cs
- SchemaNotation.cs
- SqlRemoveConstantOrderBy.cs
- NonSerializedAttribute.cs
- InternalResources.cs
- AggregateNode.cs
- AutomationAttributeInfo.cs
- _LocalDataStore.cs
- CodeTypeDeclarationCollection.cs
- JsonReader.cs
- SchemaSetCompiler.cs
- TransformGroup.cs
- TableLayoutStyleCollection.cs
- Attribute.cs
- DataGridTextColumn.cs
- TextSelectionHighlightLayer.cs
- SEHException.cs
- SecurityState.cs
- DbCommandDefinition.cs
- ValidationException.cs
- AnnotationAuthorChangedEventArgs.cs
- EnumerableCollectionView.cs
- HtmlSelectionListAdapter.cs
- NumberSubstitution.cs
- TaskFileService.cs
- WindowsGraphics.cs
- EmptyStringExpandableObjectConverter.cs
- UnmanagedMemoryStreamWrapper.cs
- WorkBatch.cs
- NavigationProperty.cs
- XmlTypeMapping.cs
- WebColorConverter.cs
- CodeGeneratorAttribute.cs
- Size3D.cs
- BaseConfigurationRecord.cs
- WaitHandleCannotBeOpenedException.cs
- SchemaTypeEmitter.cs
- SessionPageStatePersister.cs
- SynchronizedInputHelper.cs
- Misc.cs
- OleCmdHelper.cs
- oledbmetadatacolumnnames.cs
- ScrollContentPresenter.cs
- XmlDataCollection.cs
- XPathNavigator.cs
- ShutDownListener.cs
- WsatServiceCertificate.cs
- ChtmlPhoneCallAdapter.cs
- HttpWebResponse.cs
- XmlText.cs
- SiteMapDataSourceDesigner.cs
- FontNameConverter.cs
- DataSourceViewSchemaConverter.cs
- CategoryGridEntry.cs
- AnnotationResourceChangedEventArgs.cs
- PropertyDescriptorCollection.cs
- ListViewItem.cs
- SqlWebEventProvider.cs
- BamlLocalizableResource.cs
- HtmlButton.cs
- DayRenderEvent.cs
- CustomValidator.cs
- LocalServiceSecuritySettings.cs
- ThrowHelper.cs
- UserNameSecurityTokenParameters.cs
- precedingsibling.cs
- DecoderFallback.cs
- dsa.cs
- XsltContext.cs
- SecurityRuntime.cs
- SchemaImporterExtensionsSection.cs
- Stylesheet.cs
- CachedFontFamily.cs
- PersonalizationState.cs
- WebBrowserUriTypeConverter.cs
- ALinqExpressionVisitor.cs
- Int32.cs
- documentsequencetextview.cs
- _TransmitFileOverlappedAsyncResult.cs
- StyleXamlParser.cs
- VariantWrapper.cs
- Configuration.cs
- RichTextBoxConstants.cs
- SchemaElement.cs
- ToolStripItemRenderEventArgs.cs
- BehaviorEditorPart.cs
- HandlerElement.cs
- ClientSettingsSection.cs
- AppDomainManager.cs
- SemanticResultKey.cs
- NetworkInterface.cs
- MarkupCompiler.cs
- FolderBrowserDialog.cs
- ChangeDirector.cs
- SchemaMapping.cs
- SqlCacheDependencyDatabaseCollection.cs
- DesignerLoader.cs
- IBuiltInEvidence.cs