Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- EncoderExceptionFallback.cs
- VirtualizedContainerService.cs
- PreloadedPackages.cs
- SqlClientPermission.cs
- Regex.cs
- InputLangChangeRequestEvent.cs
- KeyNotFoundException.cs
- FtpWebRequest.cs
- DataGridViewRowsAddedEventArgs.cs
- Debugger.cs
- ScriptingSectionGroup.cs
- DataStreams.cs
- AvTraceDetails.cs
- ParameterBinding.cs
- XsdDateTime.cs
- Dictionary.cs
- DictionaryEntry.cs
- Transform3DGroup.cs
- TranslateTransform.cs
- TimerEventSubscription.cs
- DeflateEmulationStream.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- ViewRendering.cs
- ExpressionVisitor.cs
- CodeObject.cs
- TransformedBitmap.cs
- ScalarConstant.cs
- EventDrivenDesigner.cs
- ScriptComponentDescriptor.cs
- MessageHeader.cs
- ImmComposition.cs
- ArgumentException.cs
- ReadWriteObjectLock.cs
- Variant.cs
- CompModSwitches.cs
- ProfileBuildProvider.cs
- AutoGeneratedField.cs
- FormatConvertedBitmap.cs
- DataKeyCollection.cs
- StagingAreaInputItem.cs
- EmbeddedObject.cs
- EdmEntityTypeAttribute.cs
- GcHandle.cs
- UIElementAutomationPeer.cs
- XmlValidatingReader.cs
- DataList.cs
- CachedBitmap.cs
- CoreSwitches.cs
- RetrieveVirtualItemEventArgs.cs
- jithelpers.cs
- EdmItemCollection.OcAssemblyCache.cs
- TablePatternIdentifiers.cs
- RijndaelManagedTransform.cs
- IPEndPoint.cs
- BadImageFormatException.cs
- VarRemapper.cs
- TableLayoutColumnStyleCollection.cs
- XDRSchema.cs
- ComPlusContractBehavior.cs
- SoapHeaderAttribute.cs
- DbParameterHelper.cs
- RangeValuePattern.cs
- ProfessionalColors.cs
- HttpSysSettings.cs
- ByteFacetDescriptionElement.cs
- DataPager.cs
- WorkerRequest.cs
- RSAOAEPKeyExchangeFormatter.cs
- ResourceDefaultValueAttribute.cs
- XmlSchemaAttributeGroup.cs
- ObjectViewQueryResultData.cs
- ResourceManager.cs
- ListBoxItemWrapperAutomationPeer.cs
- SafeEventHandle.cs
- PropertyValidationContext.cs
- thaishape.cs
- SharingService.cs
- XmlSerializer.cs
- CompositeFontFamily.cs
- Char.cs
- ViewStateModeByIdAttribute.cs
- OdbcCommandBuilder.cs
- FilePrompt.cs
- BrowserCapabilitiesCodeGenerator.cs
- XsltOutput.cs
- DisposableCollectionWrapper.cs
- HMACSHA512.cs
- MessageBox.cs
- SynchronousChannel.cs
- HttpCookieCollection.cs
- TargetControlTypeAttribute.cs
- GeometryGroup.cs
- mansign.cs
- GenericWebPart.cs
- ChameleonKey.cs
- QuestionEventArgs.cs
- PolyQuadraticBezierSegment.cs
- ProfileBuildProvider.cs
- ipaddressinformationcollection.cs
- _CommandStream.cs