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
- Vector3D.cs
- FieldBuilder.cs
- Nodes.cs
- DBSchemaRow.cs
- RepeatButton.cs
- DeadLetterQueue.cs
- IOThreadScheduler.cs
- XmlSchemaExporter.cs
- ServiceBusyException.cs
- DataView.cs
- TabPage.cs
- ScriptServiceAttribute.cs
- ValidationRule.cs
- PointLightBase.cs
- PerformanceCounterNameAttribute.cs
- LineGeometry.cs
- SingleQueryOperator.cs
- NativeMethods.cs
- Int32RectConverter.cs
- ClientScriptManager.cs
- PropertyEmitterBase.cs
- Image.cs
- IriParsingElement.cs
- TableCellCollection.cs
- Label.cs
- MenuItemCollectionEditor.cs
- SmtpCommands.cs
- TimeManager.cs
- TickBar.cs
- Int16AnimationBase.cs
- TypeUtil.cs
- SecurityKeyIdentifierClause.cs
- StandardTransformFactory.cs
- M3DUtil.cs
- InternalControlCollection.cs
- DeclarativeCatalogPart.cs
- MobileControlPersister.cs
- DataGridViewDataErrorEventArgs.cs
- UpdatePanelControlTrigger.cs
- GridViewItemAutomationPeer.cs
- HttpWriter.cs
- ElementAction.cs
- ClientSponsor.cs
- DefaultValidator.cs
- DependsOnAttribute.cs
- FormsAuthenticationModule.cs
- PriorityQueue.cs
- Size3DValueSerializer.cs
- DataGridViewButtonCell.cs
- WebServiceTypeData.cs
- ComPlusTraceRecord.cs
- AsyncOperation.cs
- DataGridViewTextBoxCell.cs
- WasNotInstalledException.cs
- AnimationClock.cs
- ServiceObjectContainer.cs
- listitem.cs
- MimeTypeAttribute.cs
- GenericTextProperties.cs
- ObservableCollection.cs
- LoaderAllocator.cs
- XmlCodeExporter.cs
- InkCollectionBehavior.cs
- DataBindingHandlerAttribute.cs
- LinkedResource.cs
- DataGridViewTopLeftHeaderCell.cs
- DependencyObjectType.cs
- DataContractSerializerServiceBehavior.cs
- StateDesigner.LayoutSelectionGlyph.cs
- DataGridViewCellValueEventArgs.cs
- AddInDeploymentState.cs
- QuadraticBezierSegment.cs
- InputLangChangeRequestEvent.cs
- XmlSchemaCompilationSettings.cs
- SettingsSavedEventArgs.cs
- StylusPlugInCollection.cs
- DataGridViewCellLinkedList.cs
- Int64Animation.cs
- DrawingCollection.cs
- AddInPipelineAttributes.cs
- ReadOnlyState.cs
- WorkflowTransactionService.cs
- SelectionRangeConverter.cs
- ServiceActivationException.cs
- GridViewDeleteEventArgs.cs
- URI.cs
- StringFormat.cs
- FlowDocumentScrollViewer.cs
- ListBoxAutomationPeer.cs
- LassoHelper.cs
- StylusPoint.cs
- StylusTip.cs
- HashHelper.cs
- BaseDataList.cs
- UserControlBuildProvider.cs
- GradientSpreadMethodValidation.cs
- WinFormsComponentEditor.cs
- OleDbRowUpdatedEvent.cs
- RoleManagerModule.cs
- FileDialog.cs