Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / CodeDOM / CodeCompileUnit.cs / 1305376 / CodeCompileUnit.cs
//------------------------------------------------------------------------------ //// // //----------------------------------------------------------------------------- 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; ///[....] // Copyright (c) Microsoft Corporation. All rights reserved. ///// [ 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. /// ///// // //----------------------------------------------------------------------------- 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; ///[....] // Copyright (c) Microsoft Corporation. All rights reserved. ///// [ 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
- SqlServer2KCompatibilityCheck.cs
- DesignerLoader.cs
- TextTreeText.cs
- ListDictionaryInternal.cs
- UserInitiatedNavigationPermission.cs
- Window.cs
- PartialCachingControl.cs
- VerificationAttribute.cs
- EUCJPEncoding.cs
- Command.cs
- InstancePersistenceException.cs
- InfoCardSchemas.cs
- PhysicalAddress.cs
- Condition.cs
- TypeRefElement.cs
- PartialTrustVisibleAssemblyCollection.cs
- HostedTransportConfigurationBase.cs
- XPathNode.cs
- XhtmlTextWriter.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- JsonReaderWriterFactory.cs
- LocalizabilityAttribute.cs
- GeometryHitTestResult.cs
- PropertyRef.cs
- UnconditionalPolicy.cs
- ReachDocumentPageSerializer.cs
- SrgsRuleRef.cs
- XmlWrappingWriter.cs
- InstanceNormalEvent.cs
- Transactions.cs
- HierarchicalDataBoundControl.cs
- Membership.cs
- AssemblyFilter.cs
- DataColumn.cs
- OdbcParameter.cs
- CriticalFinalizerObject.cs
- HttpGetProtocolImporter.cs
- PasswordRecovery.cs
- SystemIPInterfaceStatistics.cs
- DefaultTextStore.cs
- EntityParameterCollection.cs
- TextTreeTextElementNode.cs
- ObjectQueryProvider.cs
- HttpCacheVary.cs
- ToolStripRenderEventArgs.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- BooleanToVisibilityConverter.cs
- ControlPropertyNameConverter.cs
- DataTemplateKey.cs
- Duration.cs
- DropShadowBitmapEffect.cs
- OdbcEnvironment.cs
- ClientUrlResolverWrapper.cs
- ErrorHandler.cs
- SqlDataSourceEnumerator.cs
- ResourceExpressionBuilder.cs
- SettingsSection.cs
- DiscoveryClientRequestChannel.cs
- TabPage.cs
- CharAnimationUsingKeyFrames.cs
- FontUnitConverter.cs
- XslVisitor.cs
- webeventbuffer.cs
- CompressedStack.cs
- SqlCaseSimplifier.cs
- SqlBuilder.cs
- WebPartActionVerb.cs
- RoleGroupCollection.cs
- ProcessModelInfo.cs
- FullTextState.cs
- ThreadTrace.cs
- EmbossBitmapEffect.cs
- UTF7Encoding.cs
- Translator.cs
- TextTreeUndo.cs
- XmlDocument.cs
- CodeStatement.cs
- PasswordBox.cs
- BamlRecordReader.cs
- DialogWindow.cs
- ConfigurationElementCollection.cs
- ScalarOps.cs
- SqlParameterizer.cs
- SoapFault.cs
- RegisteredExpandoAttribute.cs
- AppSettingsExpressionEditor.cs
- SafeNativeMethods.cs
- EmptyEnumerable.cs
- DataGridDetailsPresenter.cs
- WebRequestModuleElement.cs
- WebColorConverter.cs
- RectIndependentAnimationStorage.cs
- EncryptedReference.cs
- SmtpAuthenticationManager.cs
- GeneralTransform.cs
- RenderData.cs
- ConnectionStringSettings.cs
- DBSchemaTable.cs
- BlobPersonalizationState.cs
- OciHandle.cs