Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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 ; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// Gets the collection of assembly level attributes. /// ///// 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 ; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// Gets the collection of assembly level attributes. /// ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ToolTipAutomationPeer.cs
- PenContexts.cs
- QueryReaderSettings.cs
- MenuAdapter.cs
- EncodingDataItem.cs
- METAHEADER.cs
- DPCustomTypeDescriptor.cs
- Utils.cs
- ListViewGroupItemCollection.cs
- CreateWorkflowOwnerCommand.cs
- WorkflowStateRollbackService.cs
- errorpatternmatcher.cs
- BrowserDefinitionCollection.cs
- SafeMILHandle.cs
- IsolatedStorageException.cs
- LoginCancelEventArgs.cs
- MarshalByRefObject.cs
- MiniCustomAttributeInfo.cs
- PropVariant.cs
- CellNormalizer.cs
- SQLBoolean.cs
- DictionarySectionHandler.cs
- ChtmlPageAdapter.cs
- ProcessModelInfo.cs
- SessionStateModule.cs
- ReadOnlyDictionary.cs
- HTMLTagNameToTypeMapper.cs
- HtmlFormAdapter.cs
- RequestQueue.cs
- EdmType.cs
- PrtCap_Reader.cs
- XpsFilter.cs
- PointAnimationUsingKeyFrames.cs
- XmlBinaryReader.cs
- LogConverter.cs
- XmlSerializerVersionAttribute.cs
- TranslateTransform3D.cs
- SimpleMailWebEventProvider.cs
- SharedConnectionListener.cs
- IISUnsafeMethods.cs
- DataGridViewButtonCell.cs
- FormattedText.cs
- EventLogTraceListener.cs
- ParameterToken.cs
- QilInvokeLateBound.cs
- MergePropertyDescriptor.cs
- IconBitmapDecoder.cs
- GridViewColumnCollection.cs
- ProtocolsConfiguration.cs
- CommandDesigner.cs
- RowsCopiedEventArgs.cs
- MailAddress.cs
- HwndSource.cs
- ActiveXHelper.cs
- CqlGenerator.cs
- AsyncOperation.cs
- ColumnResizeUndoUnit.cs
- ContentFileHelper.cs
- DataGridViewRowCancelEventArgs.cs
- BuildManager.cs
- COM2PropertyBuilderUITypeEditor.cs
- IndentedWriter.cs
- HScrollProperties.cs
- BoolExpr.cs
- UnaryNode.cs
- CrossAppDomainChannel.cs
- DataSet.cs
- DataRelation.cs
- DockingAttribute.cs
- WebEventCodes.cs
- ChannelManagerService.cs
- PropertyPath.cs
- TrackingProfileCache.cs
- Currency.cs
- ProxyFragment.cs
- KeyNotFoundException.cs
- Line.cs
- ContourSegment.cs
- ObjectTag.cs
- UserControlBuildProvider.cs
- LiteralSubsegment.cs
- Animatable.cs
- UnsafeNativeMethods.cs
- OverlappedAsyncResult.cs
- TableLayoutPanelDesigner.cs
- ContractMethodInfo.cs
- TreeChangeInfo.cs
- DesignerAdapterAttribute.cs
- PackageDigitalSignatureManager.cs
- HostedHttpTransportManager.cs
- ProgressBar.cs
- XpsSerializerWriter.cs
- HttpCapabilitiesBase.cs
- SystemDiagnosticsSection.cs
- PeerDefaultCustomResolverClient.cs
- UrlMappingsModule.cs
- WindowsAuthenticationEventArgs.cs
- Subtract.cs
- PrimarySelectionGlyph.cs
- LoginAutoFormat.cs