Code:
/ FX-1434 / FX-1434 / 1.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
- ToolStripItemRenderEventArgs.cs
- SAPIEngineTypes.cs
- LineBreakRecord.cs
- HwndSource.cs
- NativeMethods.cs
- PersistChildrenAttribute.cs
- EventHandlerList.cs
- LinkTarget.cs
- SettingsPropertyWrongTypeException.cs
- ValidationException.cs
- RichTextBox.cs
- Vars.cs
- XmlHierarchicalDataSourceView.cs
- ToolStripControlHost.cs
- EntityDataSourceColumn.cs
- ToolTipService.cs
- Compiler.cs
- HtmlElement.cs
- TokenBasedSet.cs
- CurrencyWrapper.cs
- SpeechEvent.cs
- Policy.cs
- BitVector32.cs
- Message.cs
- TextSchema.cs
- TextTreeInsertElementUndoUnit.cs
- IsolatedStorageFileStream.cs
- WebBaseEventKeyComparer.cs
- EventHandlerList.cs
- DataGrid.cs
- RoutedEventConverter.cs
- WebEvents.cs
- DataListItemEventArgs.cs
- HostedNamedPipeTransportManager.cs
- CustomError.cs
- CryptographicAttribute.cs
- WorkflowApplicationAbortedException.cs
- GregorianCalendar.cs
- SemaphoreFullException.cs
- XmlEventCache.cs
- EnterpriseServicesHelper.cs
- FormatException.cs
- ExpressionBuilder.cs
- KeyboardNavigation.cs
- DesignerUtility.cs
- ProfileSettingsCollection.cs
- PropertyGridEditorPart.cs
- DataGridViewHeaderCell.cs
- CollectionConverter.cs
- FileStream.cs
- InputBuffer.cs
- ProcessModuleCollection.cs
- StylusButtonEventArgs.cs
- ObjectDisposedException.cs
- TransportBindingElement.cs
- Command.cs
- GeometryModel3D.cs
- BaseCodePageEncoding.cs
- XmlBinaryWriter.cs
- ThreadPool.cs
- ConstructorExpr.cs
- RNGCryptoServiceProvider.cs
- ToolStripDesignerUtils.cs
- TableSectionStyle.cs
- MsmqVerifier.cs
- storepermissionattribute.cs
- OrderPreservingPipeliningMergeHelper.cs
- ImpersonateTokenRef.cs
- DataPagerFieldCommandEventArgs.cs
- WebPartTracker.cs
- ConstraintManager.cs
- RecognizedPhrase.cs
- ResourcesChangeInfo.cs
- StringConcat.cs
- UpdatePanelTriggerCollection.cs
- Gdiplus.cs
- QuaternionRotation3D.cs
- SafeSecurityHelper.cs
- Merger.cs
- dataobject.cs
- DoubleLinkList.cs
- PropertyCollection.cs
- KeyNotFoundException.cs
- DataSourceControlBuilder.cs
- UserControlCodeDomTreeGenerator.cs
- RenderTargetBitmap.cs
- VisualBrush.cs
- BlockExpression.cs
- FormParameter.cs
- ComUdtElement.cs
- sitestring.cs
- BitmapSource.cs
- BinaryMessageEncoder.cs
- MoveSizeWinEventHandler.cs
- BitmapMetadata.cs
- VisualBrush.cs
- safelink.cs
- AssemblyResourceLoader.cs
- UIPropertyMetadata.cs
- CodeSubDirectory.cs