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
- _Events.cs
- StylusShape.cs
- XmlReaderSettings.cs
- StylusDownEventArgs.cs
- ActivityExecutionContext.cs
- CreateUserWizardStep.cs
- PointKeyFrameCollection.cs
- CompositeControlDesigner.cs
- TextEditorDragDrop.cs
- SqlClientPermission.cs
- AutomationIdentifier.cs
- CodeSubDirectory.cs
- TaskDesigner.cs
- DoubleLink.cs
- SpecularMaterial.cs
- SystemInfo.cs
- UpdateTranslator.cs
- HostedHttpRequestAsyncResult.cs
- ValidationPropertyAttribute.cs
- HybridDictionary.cs
- ConnectionManagementSection.cs
- NavigationProperty.cs
- IntPtr.cs
- FontStyleConverter.cs
- WindowsFormsHelpers.cs
- PointConverter.cs
- dataprotectionpermissionattribute.cs
- ChooseAction.cs
- ToolStripSplitStackLayout.cs
- DynamicValidatorEventArgs.cs
- Transform3DCollection.cs
- StringInfo.cs
- COM2PropertyPageUITypeConverter.cs
- CompilerLocalReference.cs
- SystemThemeKey.cs
- ParallelTimeline.cs
- EncoderFallback.cs
- TableLayoutPanel.cs
- xmlsaver.cs
- DependencyObjectValidator.cs
- ScrollEventArgs.cs
- QuaternionAnimationBase.cs
- ShapingWorkspace.cs
- DiscoveryClientElement.cs
- TagNameToTypeMapper.cs
- BitmapScalingModeValidation.cs
- ProgressChangedEventArgs.cs
- WizardDesigner.cs
- TextEditorThreadLocalStore.cs
- BindStream.cs
- PropertyTabChangedEvent.cs
- StringUtil.cs
- WpfPayload.cs
- WizardPanel.cs
- MemoryRecordBuffer.cs
- ContentPosition.cs
- ConnectionManagementSection.cs
- XmlUtilWriter.cs
- CodeNamespaceImportCollection.cs
- AssociatedControlConverter.cs
- BitmapEffectDrawingContent.cs
- NonSerializedAttribute.cs
- XmlCustomFormatter.cs
- DynamicPropertyReader.cs
- TabControlDesigner.cs
- ValidatedControlConverter.cs
- Executor.cs
- UTF32Encoding.cs
- ProcessStartInfo.cs
- ValidationHelper.cs
- FormatException.cs
- JavaScriptObjectDeserializer.cs
- SegmentInfo.cs
- Encoder.cs
- NullEntityWrapper.cs
- HiddenFieldDesigner.cs
- InputScopeManager.cs
- HostnameComparisonMode.cs
- Type.cs
- DeflateEmulationStream.cs
- ChildDocumentBlock.cs
- CryptoProvider.cs
- SafeLibraryHandle.cs
- LogStream.cs
- MobileControlsSection.cs
- HttpRequestTraceRecord.cs
- elementinformation.cs
- StaticFileHandler.cs
- IRCollection.cs
- SByte.cs
- RijndaelManaged.cs
- WebProxyScriptElement.cs
- MatcherBuilder.cs
- CodeCatchClause.cs
- HttpResponseWrapper.cs
- SchemeSettingElement.cs
- ITextView.cs
- ControlDesignerState.cs
- SmtpFailedRecipientsException.cs
- SendMessageChannelCache.cs