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
- DragDrop.cs
- nulltextcontainer.cs
- ECDiffieHellmanCngPublicKey.cs
- DesignTimeXamlWriter.cs
- ClientRolePrincipal.cs
- ContainerCodeDomSerializer.cs
- DataGridViewCellMouseEventArgs.cs
- MenuItem.cs
- MenuAutomationPeer.cs
- EntryWrittenEventArgs.cs
- TransactionFlowElement.cs
- DragCompletedEventArgs.cs
- BridgeDataRecord.cs
- TriggerActionCollection.cs
- TableDetailsCollection.cs
- StructuredTypeInfo.cs
- HtmlToClrEventProxy.cs
- FormsAuthenticationTicket.cs
- DataGridViewRow.cs
- AutomationPropertyInfo.cs
- PersonalizationProviderHelper.cs
- Errors.cs
- ToolStripGripRenderEventArgs.cs
- Sql8ExpressionRewriter.cs
- DataTemplate.cs
- Exception.cs
- StatusBarDrawItemEvent.cs
- DesignBindingPicker.cs
- TypeConverterValueSerializer.cs
- SqlConnectionManager.cs
- PointConverter.cs
- RouteParameter.cs
- FormViewCommandEventArgs.cs
- UInt64Storage.cs
- FunctionDetailsReader.cs
- FullTextLine.cs
- WebPartConnectionsCancelEventArgs.cs
- Converter.cs
- StartFileNameEditor.cs
- Internal.cs
- EventLog.cs
- FilteredSchemaElementLookUpTable.cs
- Array.cs
- Serializer.cs
- SharedStream.cs
- StateWorkerRequest.cs
- DisposableCollectionWrapper.cs
- FixedSOMSemanticBox.cs
- WebPartDescriptionCollection.cs
- TableItemPatternIdentifiers.cs
- SocketException.cs
- DocumentSequenceHighlightLayer.cs
- EventLogEntry.cs
- StrokeFIndices.cs
- DocumentScope.cs
- FileDialog_Vista.cs
- SaveFileDialog.cs
- SendKeys.cs
- MessagingDescriptionAttribute.cs
- RoleGroup.cs
- diagnosticsswitches.cs
- DateTimeFormatInfo.cs
- IDQuery.cs
- Splitter.cs
- QuaternionAnimation.cs
- handlecollector.cs
- BindMarkupExtensionSerializer.cs
- RuleSettings.cs
- EncodingFallbackAwareXmlTextWriter.cs
- DataGridHeaderBorder.cs
- BaseServiceProvider.cs
- ApplicationFileParser.cs
- CollectionViewGroupRoot.cs
- DelegatedStream.cs
- App.cs
- CacheAxisQuery.cs
- HtmlTernaryTree.cs
- AuthenticationModulesSection.cs
- ColorKeyFrameCollection.cs
- UniqueEventHelper.cs
- Math.cs
- MetadataArtifactLoaderComposite.cs
- CodeMemberField.cs
- ListControl.cs
- KeyEventArgs.cs
- SmiMetaData.cs
- SelectionEditingBehavior.cs
- TraceLevelStore.cs
- DeferredElementTreeState.cs
- MemberDescriptor.cs
- PathStreamGeometryContext.cs
- CodeTypeParameter.cs
- hresults.cs
- SqlBulkCopy.cs
- SqlConnection.cs
- Underline.cs
- DataRelation.cs
- HtmlTextArea.cs
- PolicyUnit.cs
- IBuiltInEvidence.cs