Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / CompMod / System / ComponentModel / TypeDescriptionProviderAttribute.cs / 1 / TypeDescriptionProviderAttribute.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.ComponentModel
{
using System;
using System.Security.Permissions;
///
///
[AttributeUsage(AttributeTargets.Class, Inherited = true)]
public sealed class TypeDescriptionProviderAttribute : Attribute
{
private string _typeName;
///
/// Creates a new TypeDescriptionProviderAttribute object.
///
public TypeDescriptionProviderAttribute(string typeName)
{
if (typeName == null)
{
throw new ArgumentNullException("typeName");
}
_typeName = typeName;
}
///
/// Creates a new TypeDescriptionProviderAttribute object.
///
public TypeDescriptionProviderAttribute(Type type)
{
if (type == null)
{
throw new ArgumentNullException("type");
}
_typeName = type.AssemblyQualifiedName;
}
///
/// The TypeName property returns the assembly qualified type name
/// for the type description provider.
///
public string TypeName
{
get
{
return _typeName;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.ComponentModel
{
using System;
using System.Security.Permissions;
///
///
[AttributeUsage(AttributeTargets.Class, Inherited = true)]
public sealed class TypeDescriptionProviderAttribute : Attribute
{
private string _typeName;
///
/// Creates a new TypeDescriptionProviderAttribute object.
///
public TypeDescriptionProviderAttribute(string typeName)
{
if (typeName == null)
{
throw new ArgumentNullException("typeName");
}
_typeName = typeName;
}
///
/// Creates a new TypeDescriptionProviderAttribute object.
///
public TypeDescriptionProviderAttribute(Type type)
{
if (type == null)
{
throw new ArgumentNullException("type");
}
_typeName = type.AssemblyQualifiedName;
}
///
/// The TypeName property returns the assembly qualified type name
/// for the type description provider.
///
public string TypeName
{
get
{
return _typeName;
}
}
}
}
// 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
- FormsAuthenticationEventArgs.cs
- OTFRasterizer.cs
- FormViewPageEventArgs.cs
- CollectionConverter.cs
- DataGridViewAddColumnDialog.cs
- GetReadStreamResult.cs
- InputScopeConverter.cs
- ByteStream.cs
- ApplicationException.cs
- ZipIOLocalFileBlock.cs
- SqlNamer.cs
- ConvertEvent.cs
- ErrorTableItemStyle.cs
- TableLayoutStyle.cs
- X509CertificateClaimSet.cs
- BindingObserver.cs
- RotateTransform3D.cs
- Size3DValueSerializer.cs
- ControlHelper.cs
- DrawingServices.cs
- StringSorter.cs
- PeerDefaultCustomResolverClient.cs
- JsonStringDataContract.cs
- TextDecorationCollectionConverter.cs
- CodeDelegateCreateExpression.cs
- BamlReader.cs
- TextRunProperties.cs
- EdmComplexPropertyAttribute.cs
- BitmapEffectCollection.cs
- ZipIOExtraField.cs
- ADMembershipProvider.cs
- Section.cs
- CompiledQueryCacheEntry.cs
- TransformPattern.cs
- XmlSerializableWriter.cs
- ListItemCollection.cs
- unsafenativemethodsother.cs
- IImplicitResourceProvider.cs
- CornerRadius.cs
- MasterPageCodeDomTreeGenerator.cs
- ClientEventManager.cs
- PropertyGridView.cs
- ValueUnavailableException.cs
- PackagingUtilities.cs
- VariableQuery.cs
- FormsIdentity.cs
- GenerateTemporaryTargetAssembly.cs
- Rule.cs
- ResizeGrip.cs
- Icon.cs
- EntityDataSourceViewSchema.cs
- TypedRowHandler.cs
- PrinterUnitConvert.cs
- NativeRightsManagementAPIsStructures.cs
- ProcessInputEventArgs.cs
- WebHeaderCollection.cs
- SafeNativeMethods.cs
- util.cs
- FlowDocumentReader.cs
- UrlMapping.cs
- XmlTextReaderImplHelpers.cs
- cookiecontainer.cs
- ValidationHelper.cs
- InstanceDescriptor.cs
- Point3DAnimationUsingKeyFrames.cs
- Application.cs
- UdpContractFilterBehavior.cs
- ObjectFullSpanRewriter.cs
- _BufferOffsetSize.cs
- Pointer.cs
- CommandBinding.cs
- exports.cs
- WindowsFormsDesignerOptionService.cs
- HostedTcpTransportManager.cs
- LocalizationParserHooks.cs
- Item.cs
- MILUtilities.cs
- Image.cs
- CodeExpressionStatement.cs
- GenericEnumConverter.cs
- CrossContextChannel.cs
- ProcessInfo.cs
- OleServicesContext.cs
- CollectionDataContract.cs
- MappingItemCollection.cs
- ComponentRenameEvent.cs
- SchemaNamespaceManager.cs
- SpeakProgressEventArgs.cs
- RuntimeUtils.cs
- Utilities.cs
- ResolveNameEventArgs.cs
- ObjectListSelectEventArgs.cs
- ContextMenuAutomationPeer.cs
- StringBlob.cs
- UrlParameterReader.cs
- SocketAddress.cs
- XmlDataDocument.cs
- SqlBulkCopyColumnMapping.cs
- ShapingWorkspace.cs
- TextCollapsingProperties.cs