Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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;
}
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ModelEditingScope.cs
- DocumentDesigner.cs
- FixUpCollection.cs
- InvalidProgramException.cs
- ElementMarkupObject.cs
- HashMembershipCondition.cs
- MetadataArtifactLoaderResource.cs
- PersonalizationStateInfoCollection.cs
- EpmSyndicationContentSerializer.cs
- AddingNewEventArgs.cs
- DescriptionAttribute.cs
- SQLMoneyStorage.cs
- Interop.cs
- httpstaticobjectscollection.cs
- DbInsertCommandTree.cs
- EventData.cs
- Double.cs
- PolicyLevel.cs
- ValidationHelper.cs
- ToolStripSplitStackLayout.cs
- SqlDuplicator.cs
- FontNamesConverter.cs
- DbConnectionStringCommon.cs
- MimeAnyImporter.cs
- WorkItem.cs
- ComponentCommands.cs
- SelectorItemAutomationPeer.cs
- QueryRewriter.cs
- BitConverter.cs
- XmlTextReader.cs
- SqlTypeSystemProvider.cs
- StringReader.cs
- RelationshipWrapper.cs
- DoubleCollection.cs
- ObjectDataSourceFilteringEventArgs.cs
- WebPartVerbCollection.cs
- PropertyPathWorker.cs
- Tool.cs
- GenericEnumerator.cs
- QilTargetType.cs
- ReferencedCollectionType.cs
- MasterPageParser.cs
- ListViewEditEventArgs.cs
- ContainsRowNumberChecker.cs
- DefaultValueMapping.cs
- SqlPersonalizationProvider.cs
- CLSCompliantAttribute.cs
- CompositeControl.cs
- EdmItemError.cs
- _RequestCacheProtocol.cs
- Int32EqualityComparer.cs
- FontStyles.cs
- DataServiceSaveChangesEventArgs.cs
- SourceItem.cs
- PersianCalendar.cs
- FindCriteriaApril2005.cs
- ArrayItemValue.cs
- ConnectionInterfaceCollection.cs
- PolyQuadraticBezierSegment.cs
- PageCache.cs
- RowCache.cs
- ArgumentNullException.cs
- IncrementalReadDecoders.cs
- TextRunProperties.cs
- WindowsFormsEditorServiceHelper.cs
- CodeExporter.cs
- IResourceProvider.cs
- ExtractedStateEntry.cs
- BoundField.cs
- COM2EnumConverter.cs
- SystemInformation.cs
- DBParameter.cs
- WsatConfiguration.cs
- FolderBrowserDialogDesigner.cs
- MaskedTextBoxTextEditorDropDown.cs
- DoubleConverter.cs
- SpecialFolderEnumConverter.cs
- TripleDES.cs
- XPathNodeList.cs
- SafeProcessHandle.cs
- ButtonBaseAdapter.cs
- DataSourceControl.cs
- VisualTreeHelper.cs
- PlanCompiler.cs
- DataControlField.cs
- HTMLTextWriter.cs
- ILGenerator.cs
- ClientScriptManager.cs
- ConfigXmlElement.cs
- LayoutEditorPart.cs
- EdmValidator.cs
- ProtocolsSection.cs
- TextBox.cs
- ParallelTimeline.cs
- MemberDescriptor.cs
- wmiprovider.cs
- HtmlWindow.cs
- DataGridViewSelectedRowCollection.cs
- PropertyAccessVisitor.cs
- NetworkInformationException.cs