Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- DelimitedListTraceListener.cs
- CodeDelegateCreateExpression.cs
- ProvidePropertyAttribute.cs
- ConnectionConsumerAttribute.cs
- DataServiceExpressionVisitor.cs
- KeyboardDevice.cs
- ElementHost.cs
- Command.cs
- SecurityState.cs
- UTF8Encoding.cs
- SeparatorAutomationPeer.cs
- XsltArgumentList.cs
- FastPropertyAccessor.cs
- recordstatescratchpad.cs
- MissingMethodException.cs
- ControlPropertyNameConverter.cs
- DayRenderEvent.cs
- _LazyAsyncResult.cs
- DetailsViewPageEventArgs.cs
- XsltContext.cs
- EtwProvider.cs
- TextFormatterImp.cs
- XPathNodePointer.cs
- GeometryGroup.cs
- EntityContainerRelationshipSetEnd.cs
- CodeDelegateInvokeExpression.cs
- XamlRtfConverter.cs
- GroupItemAutomationPeer.cs
- SessionState.cs
- Aggregates.cs
- SaveFileDialog.cs
- MasterPage.cs
- GradientBrush.cs
- SecureUICommand.cs
- Pts.cs
- HttpConfigurationSystem.cs
- HttpsHostedTransportConfiguration.cs
- ErrorFormatterPage.cs
- LicenseContext.cs
- InputLangChangeEvent.cs
- SchemaName.cs
- DataRowExtensions.cs
- ScaleTransform.cs
- System.Data.OracleClient_BID.cs
- ProcessManager.cs
- Vector.cs
- Point3D.cs
- DtdParser.cs
- RootBuilder.cs
- ConfigurationConverterBase.cs
- X509WindowsSecurityToken.cs
- RootDesignerSerializerAttribute.cs
- EdgeProfileValidation.cs
- TrackPointCollection.cs
- EdmScalarPropertyAttribute.cs
- MaskedTextBoxTextEditorDropDown.cs
- TransformerInfo.cs
- DirectoryGroupQuery.cs
- CurrentChangingEventArgs.cs
- TrustDriver.cs
- DeclaredTypeElement.cs
- AssertSection.cs
- KeyEventArgs.cs
- ErrorStyle.cs
- HtmlMeta.cs
- SimpleType.cs
- HotSpotCollection.cs
- PeekCompletedEventArgs.cs
- ToolStripPanelSelectionBehavior.cs
- ToolStripMenuItemCodeDomSerializer.cs
- SqlHelper.cs
- MarginsConverter.cs
- WsdlExporter.cs
- KeyFrames.cs
- ButtonChrome.cs
- InvalidCastException.cs
- CollectionBase.cs
- ParseHttpDate.cs
- UnmanagedBitmapWrapper.cs
- DoubleAnimationClockResource.cs
- DbgUtil.cs
- SqlDataSource.cs
- BamlLocalizer.cs
- GenerateTemporaryAssemblyTask.cs
- ReadOnlyDataSourceView.cs
- PersonalizationAdministration.cs
- GenericTextProperties.cs
- DataGridViewCellParsingEventArgs.cs
- SafeRightsManagementHandle.cs
- LockCookie.cs
- DataBinding.cs
- PageCatalogPart.cs
- ResourceSetExpression.cs
- sqlstateclientmanager.cs
- InternalCompensate.cs
- HttpCacheVaryByContentEncodings.cs
- GrammarBuilderWildcard.cs
- DbConnectionPoolCounters.cs
- Window.cs
- OracleConnectionStringBuilder.cs