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
- SamlAssertionKeyIdentifierClause.cs
- WebBrowsableAttribute.cs
- TextServicesDisplayAttribute.cs
- ResolveDuplex11AsyncResult.cs
- KeyConverter.cs
- Selection.cs
- Update.cs
- TextContainerChangeEventArgs.cs
- RegexReplacement.cs
- Perspective.cs
- RC2CryptoServiceProvider.cs
- PriorityQueue.cs
- XmlTextReader.cs
- CodeAttributeDeclarationCollection.cs
- DataGridViewRowHeaderCell.cs
- XmlSchemaSimpleContentRestriction.cs
- ReadOnlyAttribute.cs
- CompilerErrorCollection.cs
- WebPartConnectionsCancelVerb.cs
- DbDataReader.cs
- KeyInfo.cs
- EmissiveMaterial.cs
- Guid.cs
- RectangleConverter.cs
- SqlIdentifier.cs
- CodeTypeMemberCollection.cs
- EmissiveMaterial.cs
- ReadOnlyMetadataCollection.cs
- XmlSchemaAnnotated.cs
- CqlLexerHelpers.cs
- DataGridViewColumnHeaderCell.cs
- XmlWellformedWriter.cs
- NamespaceMapping.cs
- ObjectNavigationPropertyMapping.cs
- XmlTypeAttribute.cs
- DataBoundControlHelper.cs
- EventHandlerList.cs
- versioninfo.cs
- DirectoryObjectSecurity.cs
- ObjectManager.cs
- FunctionDefinition.cs
- HttpListenerPrefixCollection.cs
- RegistrySecurity.cs
- SQLCharsStorage.cs
- ContextMenu.cs
- MimeReflector.cs
- ClaimSet.cs
- FormsAuthenticationCredentials.cs
- UTF7Encoding.cs
- WindowsSspiNegotiation.cs
- BitmapCodecInfo.cs
- OdbcException.cs
- ImageSourceConverter.cs
- StreamGeometryContext.cs
- SiteIdentityPermission.cs
- AttributeData.cs
- SymmetricSecurityProtocol.cs
- Popup.cs
- ObjectListCommandEventArgs.cs
- Int32Converter.cs
- Matrix3DConverter.cs
- PersonalizationProviderCollection.cs
- OutKeywords.cs
- SystemIPv4InterfaceProperties.cs
- UriSection.cs
- webproxy.cs
- LocatorPartList.cs
- DataGridViewCellMouseEventArgs.cs
- DecoderExceptionFallback.cs
- XmlEncodedRawTextWriter.cs
- DataGridViewCell.cs
- BatchParser.cs
- ZipIOExtraFieldElement.cs
- TypeBuilderInstantiation.cs
- CodeBlockBuilder.cs
- HtmlInputControl.cs
- Aggregates.cs
- NullableDoubleMinMaxAggregationOperator.cs
- CodeExpressionCollection.cs
- TagPrefixInfo.cs
- ToolboxComponentsCreatingEventArgs.cs
- WebBaseEventKeyComparer.cs
- Configuration.cs
- EntityConnectionStringBuilderItem.cs
- DataGridParentRows.cs
- DiagnosticTraceSource.cs
- ConvertTextFrag.cs
- FamilyMapCollection.cs
- DesignerDataSourceView.cs
- KeysConverter.cs
- MailWriter.cs
- ServiceModelDictionary.cs
- TextRunCacheImp.cs
- HtmlInputSubmit.cs
- RowsCopiedEventArgs.cs
- PersonalizationProviderCollection.cs
- SpeechRecognizer.cs
- TreeNodeMouseHoverEvent.cs
- HttpListenerException.cs
- OracleInternalConnection.cs