Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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;
///
///
/// Represents a
/// compilation unit declaration.
///
///
[
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;
///
///
/// Initializes a new instance of .
///
///
public CodeCompileUnit() {
}
///
///
/// Gets or sets the collection of namespaces.
///
///
public CodeNamespaceCollection Namespaces {
get {
return namespaces;
}
}
///
///
/// 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 StringCollection ReferencedAssemblies {
get {
if (assemblies == null) {
assemblies = new StringCollection();
}
return assemblies;
}
}
///
///
/// Gets the collection of assembly level attributes.
///
///
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.
//------------------------------------------------------------------------------
//
// 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;
///
///
/// Represents a
/// compilation unit declaration.
///
///
[
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;
///
///
/// Initializes a new instance of .
///
///
public CodeCompileUnit() {
}
///
///
/// Gets or sets the collection of namespaces.
///
///
public CodeNamespaceCollection Namespaces {
get {
return namespaces;
}
}
///
///
/// 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 StringCollection ReferencedAssemblies {
get {
if (assemblies == null) {
assemblies = new StringCollection();
}
return assemblies;
}
}
///
///
/// Gets the collection of assembly level attributes.
///
///
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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SessionSymmetricMessageSecurityProtocolFactory.cs
- DoubleAnimationUsingKeyFrames.cs
- DocumentApplicationState.cs
- AddInEnvironment.cs
- Vertex.cs
- HtmlWindow.cs
- SchemeSettingElement.cs
- BindUriHelper.cs
- NameService.cs
- RegexCode.cs
- FixedSOMPage.cs
- ListViewTableCell.cs
- Event.cs
- safelinkcollection.cs
- ReadWriteSpinLock.cs
- RelationshipFixer.cs
- DashStyle.cs
- FactoryId.cs
- AnnotationComponentChooser.cs
- XmlName.cs
- _LocalDataStoreMgr.cs
- InkCanvasSelectionAdorner.cs
- SystemIPv4InterfaceProperties.cs
- IOException.cs
- SymmetricKeyWrap.cs
- BamlResourceContent.cs
- IList.cs
- _HeaderInfo.cs
- RotateTransform3D.cs
- XPathNodeList.cs
- SingleAnimation.cs
- TextServicesCompartmentEventSink.cs
- CompressStream.cs
- DataListItemEventArgs.cs
- WebColorConverter.cs
- DbProviderFactory.cs
- Slider.cs
- XmlAnyAttributeAttribute.cs
- DynamicUpdateCommand.cs
- UrlMappingCollection.cs
- DataObjectMethodAttribute.cs
- OptimizedTemplateContent.cs
- AsyncResult.cs
- TextEditorCharacters.cs
- TemplateControl.cs
- XmlSchemaImport.cs
- PersonalizationAdministration.cs
- DeclarativeExpressionConditionDeclaration.cs
- PropertyItem.cs
- SizeAnimationUsingKeyFrames.cs
- WebBodyFormatMessageProperty.cs
- ExplicitDiscriminatorMap.cs
- GroupItemAutomationPeer.cs
- _emptywebproxy.cs
- ColorConvertedBitmapExtension.cs
- ScaleTransform3D.cs
- RectangleGeometry.cs
- serverconfig.cs
- TemplatePropertyEntry.cs
- PolyQuadraticBezierSegment.cs
- CodeTryCatchFinallyStatement.cs
- CodeNamespaceImportCollection.cs
- GetRecipientRequest.cs
- WindowsComboBox.cs
- CompModSwitches.cs
- ConfigPathUtility.cs
- GrammarBuilderRuleRef.cs
- CounterCreationData.cs
- Listbox.cs
- SelectionPattern.cs
- NativeMethods.cs
- EditorPartCollection.cs
- ComponentChangedEvent.cs
- ContextDataSourceView.cs
- DisplayMemberTemplateSelector.cs
- IssuedTokenClientBehaviorsElementCollection.cs
- Frame.cs
- GridViewRowPresenter.cs
- VectorAnimationUsingKeyFrames.cs
- baseaxisquery.cs
- TextEmbeddedObject.cs
- FileUtil.cs
- PasswordPropertyTextAttribute.cs
- SafeArrayTypeMismatchException.cs
- diagnosticsswitches.cs
- _IPv6Address.cs
- EventMappingSettings.cs
- PolyBezierSegment.cs
- SessionEndingEventArgs.cs
- WebPartConnectionsCloseVerb.cs
- UrlPath.cs
- XhtmlBasicValidationSummaryAdapter.cs
- FixedPageProcessor.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- CredentialCache.cs
- SplayTreeNode.cs
- PasswordTextNavigator.cs
- XmlSchemaGroup.cs
- URL.cs
- FixedSOMTableRow.cs