Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Base / System / Windows / Markup / RootNamespaceAttribute.cs / 1 / RootNamespaceAttribute.cs
//----------------------------------------------------------------------------
//
// File: RootNamespaceAttribute.cs
//
// Description:
// RootNamespaceAttribute is an assembly level attribute is used to identify
// the value of the RootNamespace property in a project file.
//
// Copyright (C) 2006 by Microsoft Corporation. All rights reserved.
//
//---------------------------------------------------------------------------
using System;
namespace System.Windows.Markup
{
///
/// An attribute that identifies the value of the RootNamespace property in a project file.
///
[AttributeUsage(AttributeTargets.Assembly)]
public sealed class RootNamespaceAttribute : Attribute
{
///
/// Creates a new RootNamespaceAttribute that describes the value of the RootNamespace
/// property in a project file.
///
/// The root namespace value
public RootNamespaceAttribute(string nameSpace)
{
_nameSpace = nameSpace;
}
///
/// The root namespace value corresponding to the value of the RootNamespace property in a project file.
///
public string Namespace
{
get { return _nameSpace; }
}
private string _nameSpace;
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
//----------------------------------------------------------------------------
//
// File: RootNamespaceAttribute.cs
//
// Description:
// RootNamespaceAttribute is an assembly level attribute is used to identify
// the value of the RootNamespace property in a project file.
//
// Copyright (C) 2006 by Microsoft Corporation. All rights reserved.
//
//---------------------------------------------------------------------------
using System;
namespace System.Windows.Markup
{
///
/// An attribute that identifies the value of the RootNamespace property in a project file.
///
[AttributeUsage(AttributeTargets.Assembly)]
public sealed class RootNamespaceAttribute : Attribute
{
///
/// Creates a new RootNamespaceAttribute that describes the value of the RootNamespace
/// property in a project file.
///
/// The root namespace value
public RootNamespaceAttribute(string nameSpace)
{
_nameSpace = nameSpace;
}
///
/// The root namespace value corresponding to the value of the RootNamespace property in a project file.
///
public string Namespace
{
get { return _nameSpace; }
}
private string _nameSpace;
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BatchParser.cs
- ChannelFactoryRefCache.cs
- StaticTextPointer.cs
- GenericPrincipal.cs
- CompilerInfo.cs
- XmlQueryStaticData.cs
- OperationInvokerTrace.cs
- ResourceDisplayNameAttribute.cs
- safex509handles.cs
- DataGridHyperlinkColumn.cs
- ArcSegment.cs
- TransformConverter.cs
- DesignerOptions.cs
- RemotingAttributes.cs
- EventLogPermissionEntry.cs
- DataBoundControlHelper.cs
- BeginEvent.cs
- SignatureDescription.cs
- HiddenFieldPageStatePersister.cs
- Win32KeyboardDevice.cs
- HtmlEmptyTagControlBuilder.cs
- EndpointAddressMessageFilterTable.cs
- CodeMemberEvent.cs
- Transform3D.cs
- DCSafeHandle.cs
- PermissionSet.cs
- XmlSchemaImporter.cs
- Logging.cs
- HwndHostAutomationPeer.cs
- OutputCacheProfile.cs
- _RequestCacheProtocol.cs
- ToolStripItem.cs
- GridViewRowCollection.cs
- XmlWrappingReader.cs
- WsdlEndpointConversionContext.cs
- XmlSchemas.cs
- JoinSymbol.cs
- VersionConverter.cs
- SafeLibraryHandle.cs
- TypeExtensionSerializer.cs
- AliasExpr.cs
- ToolboxItemAttribute.cs
- FileChangesMonitor.cs
- TextLineBreak.cs
- DocumentApplicationJournalEntryEventArgs.cs
- TaskFileService.cs
- FormParameter.cs
- BitStack.cs
- ScalarOps.cs
- CacheMemory.cs
- XmlWrappingReader.cs
- HostedElements.cs
- COM2EnumConverter.cs
- HtmlElementEventArgs.cs
- PasswordDeriveBytes.cs
- ArgIterator.cs
- SHA1CryptoServiceProvider.cs
- ProtectedConfiguration.cs
- SynchronizingStream.cs
- RtfToXamlReader.cs
- ProfileSettingsCollection.cs
- Lease.cs
- WebPartConnectionsCancelEventArgs.cs
- ConfigurationManagerHelperFactory.cs
- MsmqAppDomainProtocolHandler.cs
- Pen.cs
- PLINQETWProvider.cs
- CultureInfoConverter.cs
- TextDpi.cs
- QilReplaceVisitor.cs
- SqlCacheDependency.cs
- XmlSerializerFactory.cs
- DataShape.cs
- WebServiceEnumData.cs
- SctClaimDictionary.cs
- MemoryFailPoint.cs
- ViewSimplifier.cs
- ContentType.cs
- SqlDependencyListener.cs
- ADMembershipUser.cs
- UInt64Storage.cs
- PrtTicket_Base.cs
- UnescapedXmlDiagnosticData.cs
- QilXmlWriter.cs
- SizeConverter.cs
- StateDesigner.CommentLayoutGlyph.cs
- DatatypeImplementation.cs
- HttpCapabilitiesEvaluator.cs
- QueryLifecycle.cs
- Point4DConverter.cs
- Claim.cs
- Button.cs
- ManagementException.cs
- BamlVersionHeader.cs
- Vector3DKeyFrameCollection.cs
- HttpInputStream.cs
- SortAction.cs
- CustomTypeDescriptor.cs
- UiaCoreApi.cs
- ListViewInsertEventArgs.cs