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
- ProcessThreadCollection.cs
- PowerModeChangedEventArgs.cs
- Types.cs
- IResourceProvider.cs
- CompilationSection.cs
- ChangeProcessor.cs
- DataGridViewImageCell.cs
- Registry.cs
- DropDownList.cs
- MulticastIPAddressInformationCollection.cs
- ArrangedElementCollection.cs
- ObjectListComponentEditor.cs
- safemediahandle.cs
- SqlRowUpdatingEvent.cs
- Geometry.cs
- SslStream.cs
- BasicAsyncResult.cs
- OdbcConnectionOpen.cs
- DataGridViewTextBoxEditingControl.cs
- HttpFileCollectionBase.cs
- CannotUnloadAppDomainException.cs
- AttributeEmitter.cs
- MarkerProperties.cs
- ByteFacetDescriptionElement.cs
- FileDetails.cs
- webeventbuffer.cs
- SrgsItemList.cs
- RolePrincipal.cs
- CheckBoxStandardAdapter.cs
- CompiledIdentityConstraint.cs
- XmlNotation.cs
- UpWmlPageAdapter.cs
- FigureParaClient.cs
- Image.cs
- Cursors.cs
- BamlRecordHelper.cs
- Setter.cs
- CustomWebEventKey.cs
- WindowsGraphics2.cs
- DataGridViewBand.cs
- PaperSource.cs
- HebrewNumber.cs
- ComponentManagerBroker.cs
- SingleStorage.cs
- BuildResultCache.cs
- XpsLiterals.cs
- PrtCap_Builder.cs
- WebPartTransformer.cs
- BuilderInfo.cs
- XmlQueryCardinality.cs
- basemetadatamappingvisitor.cs
- SchemaNotation.cs
- LateBoundBitmapDecoder.cs
- ElementUtil.cs
- SystemWebExtensionsSectionGroup.cs
- ElementsClipboardData.cs
- DataRelationCollection.cs
- PngBitmapDecoder.cs
- WebPartMenuStyle.cs
- DataDesignUtil.cs
- CommandBindingCollection.cs
- Menu.cs
- BamlLocalizableResource.cs
- SoapHeaderAttribute.cs
- XmlSchemaAttribute.cs
- RoleGroup.cs
- TitleStyle.cs
- ProjectionCamera.cs
- GraphicsPath.cs
- WebBrowserUriTypeConverter.cs
- EmptyControlCollection.cs
- CounterSetInstanceCounterDataSet.cs
- VirtualizingPanel.cs
- TreeNodeSelectionProcessor.cs
- GridItemPattern.cs
- WebServicesDescriptionAttribute.cs
- WebConfigManager.cs
- CompiledIdentityConstraint.cs
- TypeConvertions.cs
- AnnotationMap.cs
- StateItem.cs
- SafeSystemMetrics.cs
- ExceptQueryOperator.cs
- DrawingAttributeSerializer.cs
- WebBrowserUriTypeConverter.cs
- PersistenceTypeAttribute.cs
- SystemResources.cs
- EndEvent.cs
- ThreadStartException.cs
- ConfigUtil.cs
- DataGridViewComboBoxColumn.cs
- NeutralResourcesLanguageAttribute.cs
- RuleSettings.cs
- BasicViewGenerator.cs
- IntersectQueryOperator.cs
- WindowsListBox.cs
- HttpHandlerActionCollection.cs
- _ProxyChain.cs
- TableLayoutPanelCellPosition.cs
- MessageContractImporter.cs