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
- CodeIdentifier.cs
- MemoryPressure.cs
- ForAllOperator.cs
- RuntimeWrappedException.cs
- FieldCollectionEditor.cs
- WinFormsSecurity.cs
- RoutedCommand.cs
- Int64Converter.cs
- Accessible.cs
- ModelUtilities.cs
- EUCJPEncoding.cs
- GeneralTransform2DTo3DTo2D.cs
- BamlRecordReader.cs
- EventProxy.cs
- SqlNodeAnnotation.cs
- HttpRawResponse.cs
- DataDesignUtil.cs
- CryptoHelper.cs
- XmlSchemaGroupRef.cs
- CompilerInfo.cs
- ListViewUpdateEventArgs.cs
- HealthMonitoringSectionHelper.cs
- UInt64.cs
- XmlWrappingReader.cs
- ObjectItemAttributeAssemblyLoader.cs
- PrintPreviewControl.cs
- InternalBufferOverflowException.cs
- Module.cs
- ComplusTypeValidator.cs
- StrokeSerializer.cs
- OleDbPermission.cs
- TabControlCancelEvent.cs
- ObjectDataSourceEventArgs.cs
- Identifier.cs
- Rotation3D.cs
- XmlText.cs
- PackageDigitalSignatureManager.cs
- ConnectionPointCookie.cs
- TileBrush.cs
- WebBrowserNavigatingEventHandler.cs
- DataSourceXmlTextReader.cs
- SQLBoolean.cs
- NamespaceCollection.cs
- LongValidatorAttribute.cs
- DispatcherObject.cs
- BitStack.cs
- InstanceLockLostException.cs
- StackOverflowException.cs
- IncomingWebResponseContext.cs
- FileLogRecordEnumerator.cs
- ValueChangedEventManager.cs
- Globals.cs
- GestureRecognizer.cs
- VoiceObjectToken.cs
- FastEncoder.cs
- HostSecurityManager.cs
- TdsParserStaticMethods.cs
- MaskedTextProvider.cs
- BaseTypeViewSchema.cs
- Variable.cs
- SqlMethods.cs
- TreeNodeEventArgs.cs
- GifBitmapDecoder.cs
- cookiecollection.cs
- UserPreferenceChangingEventArgs.cs
- FatalException.cs
- BlockUIContainer.cs
- MemberDescriptor.cs
- Span.cs
- KeyedCollection.cs
- SpanIndex.cs
- TraceContext.cs
- CannotUnloadAppDomainException.cs
- ContainerParaClient.cs
- BitmapEffectState.cs
- Bitmap.cs
- TypefaceCollection.cs
- MailWebEventProvider.cs
- RTLAwareMessageBox.cs
- SmtpException.cs
- XMLDiffLoader.cs
- FixedSOMLineRanges.cs
- ScriptingProfileServiceSection.cs
- WorkflowElementDialogWindow.xaml.cs
- Action.cs
- NetDataContractSerializer.cs
- MSAAEventDispatcher.cs
- ColorAnimationUsingKeyFrames.cs
- SmtpTransport.cs
- StatusBarDesigner.cs
- ComponentResourceKeyConverter.cs
- ResourceSetExpression.cs
- XmlText.cs
- ThicknessKeyFrameCollection.cs
- TagMapCollection.cs
- UnsafeNativeMethods.cs
- QuaternionConverter.cs
- ShowExpandedMultiValueConverter.cs
- GridEntry.cs
- TextDpi.cs