Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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 ; } } } }/// Gets the collection of assembly level attributes. /// ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SolidBrush.cs
- CookieProtection.cs
- ListViewCancelEventArgs.cs
- Wow64ConfigurationLoader.cs
- UpdateTranslator.cs
- ColumnHeaderCollectionEditor.cs
- ApplicationTrust.cs
- CellPartitioner.cs
- CounterSample.cs
- PropertyEmitterBase.cs
- FunctionNode.cs
- NonBatchDirectoryCompiler.cs
- UnionCqlBlock.cs
- AutomationPeer.cs
- PanelStyle.cs
- DataFormats.cs
- TdsParserStaticMethods.cs
- EdmRelationshipRoleAttribute.cs
- RadioButtonStandardAdapter.cs
- TreeNodeCollection.cs
- SpecialNameAttribute.cs
- EntityFrameworkVersions.cs
- FlowDocumentView.cs
- XmlSchema.cs
- ActiveXContainer.cs
- Subordinate.cs
- Marshal.cs
- unsafenativemethodsother.cs
- SimplePropertyEntry.cs
- TypeConverterValueSerializer.cs
- UnhandledExceptionEventArgs.cs
- SSmlParser.cs
- PolicyUtility.cs
- TileBrush.cs
- VirtualDirectoryMapping.cs
- MSAAWinEventWrap.cs
- LineGeometry.cs
- WindowsComboBox.cs
- Roles.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- EntityContainerEmitter.cs
- Stack.cs
- SmiEventSink_DeferedProcessing.cs
- AsnEncodedData.cs
- ColumnHeaderCollectionEditor.cs
- IApplicationTrustManager.cs
- ThreadBehavior.cs
- EdmComplexPropertyAttribute.cs
- SelectedCellsCollection.cs
- _OSSOCK.cs
- DurableOperationContext.cs
- ModuleBuilder.cs
- HotSpot.cs
- HiddenFieldPageStatePersister.cs
- CapabilitiesPattern.cs
- OutputCacheSettings.cs
- WCFModelStrings.Designer.cs
- MultiPartWriter.cs
- StaticTextPointer.cs
- Int64KeyFrameCollection.cs
- NamedPermissionSet.cs
- SortedList.cs
- MatrixKeyFrameCollection.cs
- StyleTypedPropertyAttribute.cs
- Hex.cs
- GeneralTransform.cs
- TypeInitializationException.cs
- WebPartMovingEventArgs.cs
- RangeValidator.cs
- BaseParagraph.cs
- EmbeddedMailObject.cs
- AdPostCacheSubstitution.cs
- TaskExtensions.cs
- StyleSheetComponentEditor.cs
- PrimitiveSchema.cs
- UnmanagedBitmapWrapper.cs
- BuildManagerHost.cs
- DisplayNameAttribute.cs
- WebBrowserContainer.cs
- OleDbException.cs
- XmlDictionaryString.cs
- SqlSelectStatement.cs
- SchemaImporter.cs
- PixelFormats.cs
- OptimizerPatterns.cs
- EntityClassGenerator.cs
- PropertyMetadata.cs
- FileStream.cs
- GridEntry.cs
- TextTreeTextElementNode.cs
- TerminatorSinks.cs
- CheckBoxField.cs
- VerifyHashRequest.cs
- Matrix3DValueSerializer.cs
- BaseServiceProvider.cs
- SettingsPropertyValue.cs
- ActivitiesCollection.cs
- BackgroundWorker.cs
- GridItemProviderWrapper.cs
- InputReferenceExpression.cs