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
- Wildcard.cs
- BasicCellRelation.cs
- DataTablePropertyDescriptor.cs
- hresults.cs
- SmiMetaDataProperty.cs
- XomlCompilerResults.cs
- AffineTransform3D.cs
- APCustomTypeDescriptor.cs
- XmlSchemaAppInfo.cs
- LocalValueEnumerator.cs
- PointLight.cs
- DecoderBestFitFallback.cs
- EntityDesignerDataSourceView.cs
- RoutedUICommand.cs
- DocumentViewerConstants.cs
- AutoResizedEvent.cs
- PresentationSource.cs
- XmlSerializerNamespaces.cs
- TextChange.cs
- IdentifierCollection.cs
- DataGridRow.cs
- ObjectDataSourceFilteringEventArgs.cs
- MinMaxParagraphWidth.cs
- InvalidOleVariantTypeException.cs
- FormatVersion.cs
- Win32PrintDialog.cs
- DataFormats.cs
- DynamicValidatorEventArgs.cs
- CodeAttributeDeclarationCollection.cs
- Match.cs
- GroupLabel.cs
- AxisAngleRotation3D.cs
- Transform.cs
- EdmTypeAttribute.cs
- IntPtr.cs
- TdsEnums.cs
- WindowsToolbarItemAsMenuItem.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- StringBuilder.cs
- DataGridParentRows.cs
- WindowsPrincipal.cs
- TypeSource.cs
- SqlFunctionAttribute.cs
- TextTreeUndo.cs
- WebPartDescription.cs
- MetaForeignKeyColumn.cs
- TemplateLookupAction.cs
- _NativeSSPI.cs
- WebBodyFormatMessageProperty.cs
- ConnectionManagementSection.cs
- CellTreeNode.cs
- XamlClipboardData.cs
- WorkflowService.cs
- TextWriter.cs
- XmlSchemaAnnotation.cs
- safemediahandle.cs
- ContextItem.cs
- PhysicalAddress.cs
- MemberMaps.cs
- EventBindingService.cs
- ListComponentEditor.cs
- DataColumnMapping.cs
- SafeEventHandle.cs
- ResourcesChangeInfo.cs
- DockPattern.cs
- BackgroundWorker.cs
- DataBoundControl.cs
- AppSecurityManager.cs
- MSHTMLHost.cs
- XmlPreloadedResolver.cs
- ArgIterator.cs
- ActivityExecutionContextCollection.cs
- ScrollViewerAutomationPeer.cs
- X509Certificate.cs
- CommonGetThemePartSize.cs
- DataStreams.cs
- ShaderRenderModeValidation.cs
- GiveFeedbackEventArgs.cs
- CommandBindingCollection.cs
- ScriptReferenceEventArgs.cs
- Dispatcher.cs
- SizeAnimationBase.cs
- UserValidatedEventArgs.cs
- MediaContextNotificationWindow.cs
- BaseParaClient.cs
- PersonalizationProviderHelper.cs
- OdbcError.cs
- streamingZipPartStream.cs
- StylusPoint.cs
- HatchBrush.cs
- TextServicesPropertyRanges.cs
- DataGridRelationshipRow.cs
- AutomationElementCollection.cs
- FontResourceCache.cs
- XamlPoint3DCollectionSerializer.cs
- DataTransferEventArgs.cs
- SoapAttributeOverrides.cs
- basevalidator.cs
- SmiEventSink.cs
- ProviderUtil.cs