Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / ComponentModel / DescriptionAttribute.cs / 1 / DescriptionAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel { using System; using System.Diagnostics; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.All)] public class DescriptionAttribute : Attribute { ///Specifies a description for a property /// or event. ////// public static readonly DescriptionAttribute Default = new DescriptionAttribute(); private string description; ///Specifies the default value for the ///, which is an /// empty string (""). This field is read-only. /// public DescriptionAttribute() : this (string.Empty) { } ///[To be supplied.] ////// public DescriptionAttribute(string description) { this.description = description; } ///Initializes a new instance of the ///class. /// public virtual string Description { get { return DescriptionValue; } } ///Gets the description stored in this attribute. ////// Read/Write property that directly modifies the string stored /// in the description attribute. The default implementation /// of the Description property simply returns this value. /// protected string DescriptionValue { get { return description; } set { description = value; } } public override bool Equals(object obj) { if (obj == this) { return true; } DescriptionAttribute other = obj as DescriptionAttribute; return (other != null) && other.Description == Description; } public override int GetHashCode() { return Description.GetHashCode(); } ////// /// public override bool IsDefaultAttribute() { return (this.Equals(Default)); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MarkupWriter.cs
- input.cs
- ObjectDataSourceFilteringEventArgs.cs
- StringOutput.cs
- WindowsToolbar.cs
- CompositeControl.cs
- UIElementIsland.cs
- DataGridSortingEventArgs.cs
- CodeSubDirectoriesCollection.cs
- QueryReaderSettings.cs
- Visual3D.cs
- X509AsymmetricSecurityKey.cs
- EditorPartChrome.cs
- MethodBuilder.cs
- SHA384.cs
- SoapAttributeOverrides.cs
- QueryOpcode.cs
- HttpDebugHandler.cs
- X509WindowsSecurityToken.cs
- ValidatedControlConverter.cs
- WindowsFormsSynchronizationContext.cs
- FixedPageStructure.cs
- WebMessageBodyStyleHelper.cs
- MultipleViewPatternIdentifiers.cs
- ParameterBinding.cs
- PathSegmentCollection.cs
- TransactionsSectionGroup.cs
- PropertyIDSet.cs
- Choices.cs
- NativeActivityTransactionContext.cs
- DataRecord.cs
- XamlPoint3DCollectionSerializer.cs
- PackageRelationshipSelector.cs
- BooleanStorage.cs
- Form.cs
- EventPrivateKey.cs
- ExpressionLink.cs
- EntityDataSourceWizardForm.cs
- ZeroOpNode.cs
- ImageClickEventArgs.cs
- ClickablePoint.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- ClonableStack.cs
- TreeViewEvent.cs
- ValueOfAction.cs
- PropertyCollection.cs
- _Connection.cs
- PageStatePersister.cs
- GuidelineCollection.cs
- LinqTreeNodeEvaluator.cs
- SQLBoolean.cs
- XmlElementCollection.cs
- VoiceInfo.cs
- SqlUtils.cs
- QilGenerator.cs
- Propagator.JoinPropagator.cs
- WebPartConnectionsConnectVerb.cs
- UInt32Storage.cs
- Memoizer.cs
- ClientEventManager.cs
- HttpListenerPrefixCollection.cs
- TypedServiceOperationListItem.cs
- Token.cs
- InvalidComObjectException.cs
- MenuCommands.cs
- Serializer.cs
- CodeNamespaceImport.cs
- PopOutPanel.cs
- SQLGuidStorage.cs
- ErrorTolerantObjectWriter.cs
- ExpandoClass.cs
- StoreItemCollection.Loader.cs
- UrlPath.cs
- BoundConstants.cs
- LookupNode.cs
- ListBoxItem.cs
- HtmlInputButton.cs
- SetterBaseCollection.cs
- SafeUserTokenHandle.cs
- XmlHierarchicalEnumerable.cs
- Configuration.cs
- DeviceContext.cs
- DependencyProperty.cs
- DiscoveryExceptionDictionary.cs
- Clipboard.cs
- ClientOptions.cs
- IBuiltInEvidence.cs
- GroupItem.cs
- CodePageEncoding.cs
- HttpClientChannel.cs
- InternalRelationshipCollection.cs
- PaginationProgressEventArgs.cs
- XmlUTF8TextWriter.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- X509CertificateInitiatorServiceCredential.cs
- PointHitTestParameters.cs
- Window.cs
- Menu.cs
- Region.cs
- CodeExpressionCollection.cs