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
- MouseBinding.cs
- PolyLineSegment.cs
- OwnerDrawPropertyBag.cs
- AnnotationComponentManager.cs
- ToolStripTextBox.cs
- EmbeddedMailObject.cs
- MenuItemBinding.cs
- CodeMemberField.cs
- GridViewRowCollection.cs
- TransformPattern.cs
- ConsoleTraceListener.cs
- SQLCharsStorage.cs
- XmlEncodedRawTextWriter.cs
- UnsafeNativeMethods.cs
- DependentTransaction.cs
- StickyNote.cs
- DataGridViewCheckBoxCell.cs
- ExtenderControl.cs
- RenderOptions.cs
- COM2EnumConverter.cs
- TextViewBase.cs
- IPipelineRuntime.cs
- ReverseInheritProperty.cs
- TypedDataSetSchemaImporterExtension.cs
- UrlAuthorizationModule.cs
- TextElementEnumerator.cs
- FileDialog_Vista.cs
- XXXOnTypeBuilderInstantiation.cs
- DesignerForm.cs
- DataSpaceManager.cs
- MimePart.cs
- CompModSwitches.cs
- PopupRootAutomationPeer.cs
- Assert.cs
- SpecialNameAttribute.cs
- JsonDataContract.cs
- Screen.cs
- MobileUserControl.cs
- _DigestClient.cs
- XmlQualifiedNameTest.cs
- HtmlElementErrorEventArgs.cs
- GridViewRowEventArgs.cs
- CodeCastExpression.cs
- RemotingClientProxy.cs
- FormViewUpdateEventArgs.cs
- CqlWriter.cs
- XsdBuilder.cs
- SimpleHandlerFactory.cs
- wgx_commands.cs
- WebContext.cs
- ProvidersHelper.cs
- AlphabeticalEnumConverter.cs
- StorageBasedPackageProperties.cs
- SQLBinary.cs
- AxHost.cs
- SubMenuStyle.cs
- HandleRef.cs
- TraceData.cs
- ConstraintEnumerator.cs
- DSASignatureDeformatter.cs
- PeerValidationBehavior.cs
- ILGenerator.cs
- TrackingServices.cs
- EntityDataSourceDesigner.cs
- ScalarConstant.cs
- XmlReaderSettings.cs
- Light.cs
- DataGridViewComboBoxEditingControl.cs
- dataSvcMapFileLoader.cs
- ExpandoObject.cs
- _BaseOverlappedAsyncResult.cs
- PeerResolverBindingElement.cs
- XmlAttributes.cs
- Baml2006ReaderSettings.cs
- DesignerImageAdapter.cs
- LineSegment.cs
- DataKeyCollection.cs
- SpecularMaterial.cs
- SimpleBitVector32.cs
- TablePatternIdentifiers.cs
- COM2ColorConverter.cs
- SafeNativeMethods.cs
- ManagementScope.cs
- GridItemPatternIdentifiers.cs
- XmlSchemaImporter.cs
- ExpressionCopier.cs
- ContextMarshalException.cs
- SQLDecimal.cs
- SqlNotificationRequest.cs
- ResourceWriter.cs
- TextEndOfParagraph.cs
- Win32.cs
- CodePrimitiveExpression.cs
- ReplyChannelBinder.cs
- SQLInt64.cs
- ControlAdapter.cs
- ContextProperty.cs
- UnsettableComboBox.cs
- HttpChannelBindingToken.cs
- HandleCollector.cs