Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / TypeDescriptionProviderAttribute.cs / 1305376 / 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
- FormViewModeEventArgs.cs
- RemotingConfiguration.cs
- ScrollChrome.cs
- MethodSignatureGenerator.cs
- ExternalCalls.cs
- dataprotectionpermissionattribute.cs
- QueryableDataSource.cs
- KeyValuePairs.cs
- DateTimeSerializationSection.cs
- ValueTable.cs
- CacheEntry.cs
- CreatingCookieEventArgs.cs
- CheckPair.cs
- EventManager.cs
- BinaryUtilClasses.cs
- LifetimeMonitor.cs
- TranslateTransform3D.cs
- FamilyMap.cs
- ObjectViewEntityCollectionData.cs
- ConstrainedGroup.cs
- ProcessHostConfigUtils.cs
- TickBar.cs
- ExpressionUtilities.cs
- ToolStripLocationCancelEventArgs.cs
- NavigationWindow.cs
- FtpRequestCacheValidator.cs
- FormViewInsertEventArgs.cs
- ComplexObject.cs
- SymmetricSecurityProtocol.cs
- TextParagraphProperties.cs
- Unit.cs
- SessionEndedEventArgs.cs
- TypeForwardedToAttribute.cs
- SystemDropShadowChrome.cs
- SchemaType.cs
- HyperLink.cs
- EntityConnection.cs
- ValueUnavailableException.cs
- GridErrorDlg.cs
- CDSCollectionETWBCLProvider.cs
- HTMLTextWriter.cs
- ServiceDiscoveryBehavior.cs
- ToolBarButton.cs
- EntitySqlException.cs
- ToolboxBitmapAttribute.cs
- ScriptIgnoreAttribute.cs
- DocumentViewerConstants.cs
- CommonXSendMessage.cs
- ObjectItemNoOpAssemblyLoader.cs
- StringStorage.cs
- TreeViewImageKeyConverter.cs
- ImageAnimator.cs
- DataGridColumn.cs
- OneOfTypeConst.cs
- SerializationSectionGroup.cs
- _UncName.cs
- ValueType.cs
- OSFeature.cs
- Types.cs
- XmlSchema.cs
- DataGridViewCellValidatingEventArgs.cs
- HtmlInputImage.cs
- PeerTransportSecuritySettings.cs
- bidPrivateBase.cs
- NetNamedPipeBinding.cs
- UiaCoreTypesApi.cs
- externdll.cs
- VScrollProperties.cs
- SqlEnums.cs
- DbBuffer.cs
- ManagementNamedValueCollection.cs
- PageAsyncTaskManager.cs
- XmlReflectionMember.cs
- ViewCellRelation.cs
- SqlConnectionPoolProviderInfo.cs
- SmiMetaDataProperty.cs
- SafeFileHandle.cs
- HttpChannelBindingToken.cs
- MatrixKeyFrameCollection.cs
- StringKeyFrameCollection.cs
- IPGlobalProperties.cs
- XmlSchemaInferenceException.cs
- JsonFormatGeneratorStatics.cs
- ComponentEvent.cs
- TextEditorDragDrop.cs
- EntityDataSourceChangingEventArgs.cs
- WebBrowserContainer.cs
- BStrWrapper.cs
- GridViewItemAutomationPeer.cs
- PathNode.cs
- TraceXPathNavigator.cs
- EntityCollection.cs
- ClosureBinding.cs
- CalculatedColumn.cs
- QuotedPrintableStream.cs
- ConfigurationSectionCollection.cs
- Calendar.cs
- TimeoutHelper.cs
- SharedStatics.cs
- MasterPageBuildProvider.cs