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
- TextEditorTyping.cs
- MessageLoggingElement.cs
- XmlSchemaValidator.cs
- HMACSHA512.cs
- EditorPart.cs
- MembershipSection.cs
- InvalidTimeZoneException.cs
- sqlcontext.cs
- SafeRightsManagementPubHandle.cs
- Label.cs
- CloudCollection.cs
- DurationConverter.cs
- SmtpNegotiateAuthenticationModule.cs
- ZipIOLocalFileBlock.cs
- CodePageEncoding.cs
- cookiecontainer.cs
- DataFieldEditor.cs
- EventDrivenDesigner.cs
- ModelPropertyImpl.cs
- ContainerVisual.cs
- DefaultTextStore.cs
- PackagingUtilities.cs
- BuildProvider.cs
- SamlAuthorizationDecisionStatement.cs
- DecimalAnimationUsingKeyFrames.cs
- RangeValidator.cs
- TextRangeProviderWrapper.cs
- ResXResourceReader.cs
- TextSelectionHelper.cs
- TransactionChannelFaultConverter.cs
- PersonalizationProviderCollection.cs
- DataObjectAttribute.cs
- TypeLibraryHelper.cs
- SafeFileMappingHandle.cs
- WebContext.cs
- InputReport.cs
- CodeGen.cs
- ProfileEventArgs.cs
- LayoutTable.cs
- RelationshipManager.cs
- ChannelManager.cs
- Context.cs
- Composition.cs
- XmlCustomFormatter.cs
- PeerServiceMessageContracts.cs
- _LocalDataStoreMgr.cs
- HiddenField.cs
- Attributes.cs
- ViewBox.cs
- BooleanToVisibilityConverter.cs
- OracleConnection.cs
- InternalMappingException.cs
- IconHelper.cs
- AudioException.cs
- ForeignConstraint.cs
- MenuItemAutomationPeer.cs
- odbcmetadatacollectionnames.cs
- WebBrowserProgressChangedEventHandler.cs
- Point3D.cs
- EmulateRecognizeCompletedEventArgs.cs
- AssemblyResourceLoader.cs
- ContractMapping.cs
- ItemChangedEventArgs.cs
- DynamicUpdateCommand.cs
- Animatable.cs
- MD5CryptoServiceProvider.cs
- CodeGen.cs
- X509Chain.cs
- AdPostCacheSubstitution.cs
- userdatakeys.cs
- ProxyManager.cs
- ImageMap.cs
- OdbcInfoMessageEvent.cs
- DetailsViewDeleteEventArgs.cs
- SqlDataSourceFilteringEventArgs.cs
- HyperLinkField.cs
- MatchingStyle.cs
- WaveHeader.cs
- SimpleMailWebEventProvider.cs
- ExclusiveHandle.cs
- BitmapCacheBrush.cs
- HttpListenerResponse.cs
- TextMarkerSource.cs
- DetailsViewDeleteEventArgs.cs
- ButtonPopupAdapter.cs
- SafeRightsManagementEnvironmentHandle.cs
- HMAC.cs
- Object.cs
- BaseProcessor.cs
- CollectionCodeDomSerializer.cs
- BinaryObjectInfo.cs
- PartitionResolver.cs
- securitymgrsite.cs
- OdbcHandle.cs
- MsmqTransportElement.cs
- SingletonChannelAcceptor.cs
- SplitContainer.cs
- PropertyItemInternal.cs
- BuildProvider.cs
- PropertyDescriptorCollection.cs