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
- MatcherBuilder.cs
- AssociationSetMetadata.cs
- SingleObjectCollection.cs
- PolyLineSegment.cs
- TypeConverterHelper.cs
- DriveInfo.cs
- MouseGestureConverter.cs
- SocketManager.cs
- CellConstantDomain.cs
- ImageField.cs
- XmlSchemaAnyAttribute.cs
- SemaphoreFullException.cs
- Walker.cs
- CompilerParameters.cs
- DataGridViewButtonCell.cs
- XmlUnspecifiedAttribute.cs
- Tokenizer.cs
- Simplifier.cs
- MessageBuffer.cs
- DefaultWorkflowLoaderService.cs
- Converter.cs
- DrawingContextWalker.cs
- TreeBuilderBamlTranslator.cs
- StringOutput.cs
- DataSet.cs
- SystemIPAddressInformation.cs
- ScrollableControlDesigner.cs
- NullReferenceException.cs
- ReceiveMessageAndVerifySecurityAsyncResultBase.cs
- AsyncSerializedWorker.cs
- FlowLayoutPanel.cs
- SmtpException.cs
- CssTextWriter.cs
- ToolStripHighContrastRenderer.cs
- ProxyHwnd.cs
- PauseStoryboard.cs
- FlowDocumentScrollViewer.cs
- DataGridViewTopLeftHeaderCell.cs
- QueryRewriter.cs
- Subset.cs
- BinaryUtilClasses.cs
- XamlTypeMapperSchemaContext.cs
- ZipIOCentralDirectoryBlock.cs
- TextBox.cs
- DataMember.cs
- ResourcesGenerator.cs
- DrawTreeNodeEventArgs.cs
- TempEnvironment.cs
- AsyncOperation.cs
- AbstractExpressions.cs
- AdPostCacheSubstitution.cs
- SqlComparer.cs
- SetStoryboardSpeedRatio.cs
- UnlockInstanceCommand.cs
- Animatable.cs
- AppDomainFactory.cs
- WindowsTooltip.cs
- ComboBox.cs
- SafeCryptContextHandle.cs
- Array.cs
- DataBinder.cs
- RegexMatchCollection.cs
- TracePayload.cs
- RPIdentityRequirement.cs
- PostBackOptions.cs
- WindowsTreeView.cs
- WebHeaderCollection.cs
- ContainsRowNumberChecker.cs
- COSERVERINFO.cs
- SemanticAnalyzer.cs
- DataGridViewTextBoxCell.cs
- UidPropertyAttribute.cs
- AbstractExpressions.cs
- MimeTypePropertyAttribute.cs
- WebFaultException.cs
- EnumerableRowCollection.cs
- DeleteMemberBinder.cs
- PTProvider.cs
- SymmetricAlgorithm.cs
- TextEvent.cs
- TdsParser.cs
- WindowsNonControl.cs
- AutomationAttributeInfo.cs
- ToolboxComponentsCreatedEventArgs.cs
- SchemaContext.cs
- XmlHierarchicalDataSourceView.cs
- TextParaClient.cs
- RepeaterItemEventArgs.cs
- OleDbRowUpdatingEvent.cs
- CompiledQueryCacheEntry.cs
- CellParaClient.cs
- ThousandthOfEmRealDoubles.cs
- StructuralType.cs
- PropertyItem.cs
- SelectionItemPattern.cs
- Bits.cs
- XmlDataSource.cs
- BaseServiceProvider.cs
- CodeMemberMethod.cs
- BitmapDecoder.cs