Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- NamespaceQuery.cs
- PropertyMapper.cs
- ProtocolsConfiguration.cs
- UniqueCodeIdentifierScope.cs
- SplineQuaternionKeyFrame.cs
- SqlParameter.cs
- HttpDictionary.cs
- Graphics.cs
- CompositeCollectionView.cs
- TypeUsageBuilder.cs
- ToolStripSettings.cs
- VariableQuery.cs
- GenericRootAutomationPeer.cs
- AtomMaterializerLog.cs
- Rect.cs
- TemplateControlCodeDomTreeGenerator.cs
- MouseEventArgs.cs
- NullableDecimalMinMaxAggregationOperator.cs
- DynamicILGenerator.cs
- ActivityBindForm.cs
- LinkedResource.cs
- SqlConnectionStringBuilder.cs
- TraceSource.cs
- FirewallWrapper.cs
- RecognizerStateChangedEventArgs.cs
- CaseInsensitiveHashCodeProvider.cs
- ISFTagAndGuidCache.cs
- VisualCollection.cs
- ListViewItemEventArgs.cs
- CookielessHelper.cs
- ProofTokenCryptoHandle.cs
- Int16.cs
- SizeLimitedCache.cs
- ProfilePropertySettings.cs
- StylusTouchDevice.cs
- GestureRecognitionResult.cs
- categoryentry.cs
- BindStream.cs
- DynamicQueryableWrapper.cs
- HebrewNumber.cs
- PrintController.cs
- ContentFilePart.cs
- GeneralTransform3DGroup.cs
- Table.cs
- StatusBarDrawItemEvent.cs
- SeekStoryboard.cs
- SapiGrammar.cs
- NameSpaceExtractor.cs
- TimeSpan.cs
- NameValueSectionHandler.cs
- unsafenativemethodstextservices.cs
- GPStream.cs
- Metafile.cs
- Array.cs
- FlowLayoutSettings.cs
- ConstructorArgumentAttribute.cs
- TextClipboardData.cs
- DataServiceHost.cs
- PasswordDeriveBytes.cs
- LabelEditEvent.cs
- Bits.cs
- DataGridViewDataConnection.cs
- ConcurrentDictionary.cs
- OleDbConnectionFactory.cs
- PropertyMetadata.cs
- _SpnDictionary.cs
- StreamGeometry.cs
- TemplatePagerField.cs
- MenuTracker.cs
- ConstraintManager.cs
- StringConverter.cs
- SqlNodeAnnotation.cs
- DispatchChannelSink.cs
- LicenseProviderAttribute.cs
- RectConverter.cs
- PropertiesTab.cs
- PreProcessInputEventArgs.cs
- DBSchemaTable.cs
- Subset.cs
- LicenseException.cs
- SoapInteropTypes.cs
- SQLBinary.cs
- DiffuseMaterial.cs
- Point3DKeyFrameCollection.cs
- UrlPropertyAttribute.cs
- ProgressBar.cs
- ButtonPopupAdapter.cs
- __TransparentProxy.cs
- XmlValueConverter.cs
- WebPartConnectionsConfigureVerb.cs
- HttpHandlersSection.cs
- Char.cs
- TextRenderer.cs
- TouchEventArgs.cs
- ValidatorCollection.cs
- ComponentManagerBroker.cs
- TabControlCancelEvent.cs
- TypefaceCollection.cs
- PrinterSettings.cs
- DescendantQuery.cs