Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- PointLight.cs
- SqlMethodAttribute.cs
- TypedTableGenerator.cs
- WindowsListViewSubItem.cs
- ByteBufferPool.cs
- PropertyCollection.cs
- CloudCollection.cs
- WebPartDescription.cs
- ErrorFormatterPage.cs
- Viewport2DVisual3D.cs
- CharAnimationUsingKeyFrames.cs
- localization.cs
- DefinitionUpdate.cs
- AdornerDecorator.cs
- AutomationElementCollection.cs
- MetaType.cs
- StaticSiteMapProvider.cs
- RefreshPropertiesAttribute.cs
- InternalConfigSettingsFactory.cs
- CultureTableRecord.cs
- CutCopyPasteHelper.cs
- oledbmetadatacolumnnames.cs
- TagNameToTypeMapper.cs
- ManagementPath.cs
- Opcode.cs
- PartialList.cs
- IndexingContentUnit.cs
- CryptoApi.cs
- AnonymousIdentificationModule.cs
- ExtensionFile.cs
- ChildrenQuery.cs
- TextBlock.cs
- FormsAuthenticationTicket.cs
- MasterPageCodeDomTreeGenerator.cs
- XmlSchemaFacet.cs
- BaseAppDomainProtocolHandler.cs
- DataGridViewColumnConverter.cs
- XmlWhitespace.cs
- XmlSchemaRedefine.cs
- FormViewUpdatedEventArgs.cs
- XmlQueryContext.cs
- InvokeAction.cs
- RC2.cs
- ClientBuildManagerCallback.cs
- ConfigurationErrorsException.cs
- CoTaskMemHandle.cs
- XmlRawWriterWrapper.cs
- ViewService.cs
- Emitter.cs
- TrackingStringDictionary.cs
- XmlSchemaAny.cs
- TransformationRules.cs
- GridViewEditEventArgs.cs
- SendAgentStatusRequest.cs
- EntityDataSourceChangedEventArgs.cs
- ConfigurationLocationCollection.cs
- TypeExtensions.cs
- StylusPointProperty.cs
- DataObjectAttribute.cs
- WebServiceResponse.cs
- BrowserInteropHelper.cs
- PropertyNames.cs
- WindowsListBox.cs
- WeakHashtable.cs
- WindowsAuthenticationModule.cs
- ValueQuery.cs
- TraceSection.cs
- ArrangedElement.cs
- ValidatorCollection.cs
- SkipQueryOptionExpression.cs
- ModelTreeEnumerator.cs
- HttpListenerPrefixCollection.cs
- MissingSatelliteAssemblyException.cs
- DbDataSourceEnumerator.cs
- Section.cs
- UIEndRequest.cs
- DependencyPropertyKind.cs
- Utility.cs
- DelegateSerializationHolder.cs
- VerificationAttribute.cs
- MetadataArtifactLoaderCompositeFile.cs
- MappingMetadataHelper.cs
- GatewayDefinition.cs
- ContentElementAutomationPeer.cs
- EntityDataSourceView.cs
- StructuralObject.cs
- AuthenticatingEventArgs.cs
- XmlIgnoreAttribute.cs
- DateTimeConverter2.cs
- StaticTextPointer.cs
- StyleCollectionEditor.cs
- SessionPageStateSection.cs
- ErrorStyle.cs
- XmlSchemaObjectCollection.cs
- CommandConverter.cs
- XmlDataProvider.cs
- SymbolEqualComparer.cs
- UnsafeNativeMethods.cs
- FontUnitConverter.cs
- EdmConstants.cs