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 / CodeNamespaceImport.cs / 1 / CodeNamespaceImport.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.CodeDom {
using System.Diagnostics;
using System;
using Microsoft.Win32;
using System.Collections;
using System.Runtime.InteropServices;
///
///
/// Represents a namespace import into the current namespace.
///
///
[
ClassInterface(ClassInterfaceType.AutoDispatch),
ComVisible(true),
Serializable,
]
public class CodeNamespaceImport : CodeObject {
private string nameSpace;
private CodeLinePragma linePragma;
///
///
/// Initializes a new instance of .
///
///
public CodeNamespaceImport() {
}
///
///
/// Initializes a new instance of using the specified namespace
/// to import.
///
///
public CodeNamespaceImport(string nameSpace) {
Namespace = nameSpace;
}
///
///
/// The line the statement occurs on.
///
///
public CodeLinePragma LinePragma {
get {
return linePragma;
}
set {
linePragma = value;
}
}
///
///
/// Gets or sets
/// the namespace to import.
///
///
public string Namespace {
get {
return (nameSpace == null) ? string.Empty : nameSpace;
}
set {
nameSpace = value;
}
}
}
}
// 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.Runtime.InteropServices;
///
///
/// Represents a namespace import into the current namespace.
///
///
[
ClassInterface(ClassInterfaceType.AutoDispatch),
ComVisible(true),
Serializable,
]
public class CodeNamespaceImport : CodeObject {
private string nameSpace;
private CodeLinePragma linePragma;
///
///
/// Initializes a new instance of .
///
///
public CodeNamespaceImport() {
}
///
///
/// Initializes a new instance of using the specified namespace
/// to import.
///
///
public CodeNamespaceImport(string nameSpace) {
Namespace = nameSpace;
}
///
///
/// The line the statement occurs on.
///
///
public CodeLinePragma LinePragma {
get {
return linePragma;
}
set {
linePragma = value;
}
}
///
///
/// Gets or sets
/// the namespace to import.
///
///
public string Namespace {
get {
return (nameSpace == null) ? string.Empty : nameSpace;
}
set {
nameSpace = value;
}
}
}
}
// 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
- CompareValidator.cs
- BrowserCapabilitiesCodeGenerator.cs
- InvalidProgramException.cs
- LogicalTreeHelper.cs
- Parsers.cs
- TraceUtils.cs
- DataControlFieldCollection.cs
- SmiEventSink.cs
- ToolStripArrowRenderEventArgs.cs
- BindingGraph.cs
- WebServiceFaultDesigner.cs
- WebDisplayNameAttribute.cs
- Attributes.cs
- WindowsTokenRoleProvider.cs
- TableHeaderCell.cs
- SqlBooleanizer.cs
- FormsAuthenticationConfiguration.cs
- DiscardableAttribute.cs
- TextPattern.cs
- JournalEntryStack.cs
- InvokeMethodActivity.cs
- InternalMappingException.cs
- CharConverter.cs
- Exceptions.cs
- KeyValuePairs.cs
- _OverlappedAsyncResult.cs
- CustomAssemblyResolver.cs
- SQLInt64Storage.cs
- HttpException.cs
- ReadOnlyTernaryTree.cs
- DrawingGroupDrawingContext.cs
- XamlTreeBuilder.cs
- Int32KeyFrameCollection.cs
- CellConstant.cs
- IISMapPath.cs
- Journal.cs
- SetterTriggerConditionValueConverter.cs
- Win32.cs
- DataGridCell.cs
- WebConfigurationManager.cs
- FieldNameLookup.cs
- LinkTarget.cs
- HttpModuleCollection.cs
- FontStretchConverter.cs
- COM2ComponentEditor.cs
- DisableDpiAwarenessAttribute.cs
- InvalidOperationException.cs
- CredentialCache.cs
- EntityDataSourceChangingEventArgs.cs
- Msec.cs
- DataServiceResponse.cs
- ReceiveDesigner.xaml.cs
- _RequestCacheProtocol.cs
- NetworkCredential.cs
- HttpModuleCollection.cs
- MD5.cs
- XmlIgnoreAttribute.cs
- LogWriteRestartAreaState.cs
- VerificationAttribute.cs
- BufferedGraphics.cs
- XmlSerializationWriter.cs
- CallbackException.cs
- HtmlEmptyTagControlBuilder.cs
- AutoSizeComboBox.cs
- XmlSchemaSimpleContentRestriction.cs
- BamlMapTable.cs
- ButtonPopupAdapter.cs
- DropTarget.cs
- CompileLiteralTextParser.cs
- PartialTrustVisibleAssembly.cs
- ToolStripLocationCancelEventArgs.cs
- ConditionCollection.cs
- ServerValidateEventArgs.cs
- DataGridViewRowConverter.cs
- shaperfactoryquerycacheentry.cs
- ExpressionPrefixAttribute.cs
- MutexSecurity.cs
- LinearQuaternionKeyFrame.cs
- PropertyEntry.cs
- XamlBuildTaskServices.cs
- ArrayItemValue.cs
- Propagator.cs
- FixedSOMContainer.cs
- WindowsGraphicsCacheManager.cs
- Stopwatch.cs
- MgmtConfigurationRecord.cs
- XmlChildNodes.cs
- SchemaNamespaceManager.cs
- StrongNameMembershipCondition.cs
- DataColumnCollection.cs
- RSAPKCS1SignatureDeformatter.cs
- Border.cs
- ScriptControlDescriptor.cs
- ListBoxItemAutomationPeer.cs
- DeleteStoreRequest.cs
- MD5HashHelper.cs
- UniformGrid.cs
- HighContrastHelper.cs
- ParameterCollection.cs
- AssemblyAttributes.cs