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
- CatalogPartChrome.cs
- PlainXmlWriter.cs
- TextFormatterContext.cs
- entitydatasourceentitysetnameconverter.cs
- EmptyControlCollection.cs
- EqualityComparer.cs
- XmlSerializerAssemblyAttribute.cs
- MetadataItemEmitter.cs
- BitmapEffectGeneralTransform.cs
- EntityDataSourceWrapperCollection.cs
- MappingModelBuildProvider.cs
- TextFormatter.cs
- DataGridViewCellValueEventArgs.cs
- RijndaelCryptoServiceProvider.cs
- Marshal.cs
- BitmapEffectCollection.cs
- PersonalizationDictionary.cs
- WebPartUtil.cs
- ArrayExtension.cs
- SqlDependencyUtils.cs
- XmlTextWriter.cs
- TagPrefixInfo.cs
- PropertyEmitterBase.cs
- XPathDocumentNavigator.cs
- FirstMatchCodeGroup.cs
- FastEncoder.cs
- XmlSerializerAssemblyAttribute.cs
- WebPartCloseVerb.cs
- DateTimeConstantAttribute.cs
- Bold.cs
- XmlSchemaValidationException.cs
- CodeExporter.cs
- InstalledFontCollection.cs
- ValidatorCompatibilityHelper.cs
- QilInvokeLateBound.cs
- OuterGlowBitmapEffect.cs
- DebugInfoGenerator.cs
- XmlChildEnumerator.cs
- ContextMenuAutomationPeer.cs
- PrivilegeNotHeldException.cs
- CompilerErrorCollection.cs
- EventLog.cs
- MediaEntryAttribute.cs
- DateTimeConstantAttribute.cs
- InternalReceiveMessage.cs
- ImageMap.cs
- TitleStyle.cs
- DetailsViewRow.cs
- TraceSection.cs
- SnapLine.cs
- CompositionAdorner.cs
- GPPOINT.cs
- WebPartChrome.cs
- ToolStripDesigner.cs
- PeerChannelListener.cs
- WebHeaderCollection.cs
- Marshal.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- SamlAuthorizationDecisionStatement.cs
- ColumnCollection.cs
- ObservableCollection.cs
- DataControlHelper.cs
- NameValueCollection.cs
- GenericUriParser.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- BasicExpressionVisitor.cs
- CheckoutException.cs
- PaintEvent.cs
- DataGridViewRowsAddedEventArgs.cs
- TypeConverterAttribute.cs
- TargetConverter.cs
- AttachedAnnotation.cs
- SessionStateSection.cs
- UserControlCodeDomTreeGenerator.cs
- EntityDataSourceQueryBuilder.cs
- UnsafeCollabNativeMethods.cs
- InvokeMethodActivity.cs
- AddingNewEventArgs.cs
- XmlMtomReader.cs
- TextContainerChangedEventArgs.cs
- DataGridCell.cs
- StackOverflowException.cs
- Interlocked.cs
- SessionStateModule.cs
- VectorCollection.cs
- ValidationErrorEventArgs.cs
- RestClientProxyHandler.cs
- XmlProcessingInstruction.cs
- KeyMatchBuilder.cs
- Compiler.cs
- SocketException.cs
- XamlTypeWithExplicitNamespace.cs
- ArithmeticException.cs
- DataGridViewColumnConverter.cs
- CompareValidator.cs
- Visitor.cs
- StorageAssociationTypeMapping.cs
- PointIndependentAnimationStorage.cs
- SerialPort.cs
- listitem.cs