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
- XPathArrayIterator.cs
- MdImport.cs
- ProfileManager.cs
- NetworkCredential.cs
- IxmlLineInfo.cs
- DataTableMappingCollection.cs
- AbsoluteQuery.cs
- HttpClientChannel.cs
- WindowsUpDown.cs
- CallInfo.cs
- OleDbPropertySetGuid.cs
- AssemblyCache.cs
- _HTTPDateParse.cs
- MembershipPasswordException.cs
- RuntimeHandles.cs
- ListViewItemMouseHoverEvent.cs
- MultiView.cs
- NullableIntAverageAggregationOperator.cs
- Process.cs
- Converter.cs
- OletxResourceManager.cs
- CodeDirectoryCompiler.cs
- TreeNodeStyleCollection.cs
- DocumentApplicationDocumentViewer.cs
- PolicyException.cs
- XpsTokenContext.cs
- BrowserCapabilitiesCodeGenerator.cs
- entitydatasourceentitysetnameconverter.cs
- WeakReferenceList.cs
- CodeDOMProvider.cs
- AnonymousIdentificationModule.cs
- Helpers.cs
- TemplateControl.cs
- FixedBufferAttribute.cs
- HideDisabledControlAdapter.cs
- pingexception.cs
- ColumnMapProcessor.cs
- DataSourceControl.cs
- TextContainerHelper.cs
- ActiveXHost.cs
- AnimationLayer.cs
- XPathNavigator.cs
- EtwTrace.cs
- AppDomainUnloadedException.cs
- ScriptMethodAttribute.cs
- Exceptions.cs
- infer.cs
- EntityDataSourceEntityTypeFilterItem.cs
- BinHexDecoder.cs
- _LocalDataStore.cs
- BuildDependencySet.cs
- SQLMoney.cs
- entitydatasourceentitysetnameconverter.cs
- DataGridViewButtonCell.cs
- WCFModelStrings.Designer.cs
- ApplicationFileParser.cs
- BindingCollection.cs
- WebConfigurationFileMap.cs
- ICspAsymmetricAlgorithm.cs
- PropertyDescriptorGridEntry.cs
- KeyPullup.cs
- RequestBringIntoViewEventArgs.cs
- CrossContextChannel.cs
- GridItem.cs
- SqlInternalConnectionSmi.cs
- ListQueryResults.cs
- SyndicationSerializer.cs
- RootBuilder.cs
- webproxy.cs
- BitFlagsGenerator.cs
- KerberosSecurityTokenParameters.cs
- ListBindingConverter.cs
- ByteRangeDownloader.cs
- XmlNamespaceMapping.cs
- UpDownBase.cs
- TreeViewImageKeyConverter.cs
- CalendarDayButton.cs
- SizeConverter.cs
- FormsAuthenticationUserCollection.cs
- TableAutomationPeer.cs
- CompressEmulationStream.cs
- CodeTypeOfExpression.cs
- SupportingTokenChannel.cs
- SimpleHandlerBuildProvider.cs
- PeerToPeerException.cs
- InputBuffer.cs
- BooleanSwitch.cs
- TextTreeFixupNode.cs
- SByte.cs
- HyperLinkColumn.cs
- SqlTrackingWorkflowInstance.cs
- CodeExpressionCollection.cs
- BooleanAnimationUsingKeyFrames.cs
- Filter.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- Line.cs
- WebMethodAttribute.cs
- MessageBox.cs
- PersistNameAttribute.cs
- XmlComplianceUtil.cs