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
- EntityStoreSchemaFilterEntry.cs
- ContextBase.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- BlobPersonalizationState.cs
- XmlSchemaAttributeGroupRef.cs
- ItemMap.cs
- IIS7WorkerRequest.cs
- AddInServer.cs
- ItemCheckEvent.cs
- DataGrid.cs
- AnyAllSearchOperator.cs
- ReadOnlyDictionary.cs
- MsdtcClusterUtils.cs
- BrowserCapabilitiesCompiler.cs
- InputBuffer.cs
- SynchronizationFilter.cs
- errorpatternmatcher.cs
- CollectionEditor.cs
- VirtualPathProvider.cs
- PeerConnector.cs
- StructuredType.cs
- XmlHierarchyData.cs
- IfAction.cs
- CommonXSendMessage.cs
- EntityCollectionChangedParams.cs
- DataBoundControlActionList.cs
- BridgeDataRecord.cs
- Wizard.cs
- CheckBoxPopupAdapter.cs
- ArrayExtension.cs
- XmlSchemaSimpleContent.cs
- ContentDefinition.cs
- PropertyEmitterBase.cs
- PropertyEmitterBase.cs
- ContainsRowNumberChecker.cs
- ProgressBarAutomationPeer.cs
- PartitionerQueryOperator.cs
- TypeListConverter.cs
- InvalidEnumArgumentException.cs
- DataGridViewImageCell.cs
- ResourcePermissionBase.cs
- ValueType.cs
- GlobalProxySelection.cs
- AsyncCompletedEventArgs.cs
- WebBrowsableAttribute.cs
- Models.cs
- EncodingNLS.cs
- AdCreatedEventArgs.cs
- CommandEventArgs.cs
- GridLengthConverter.cs
- VerticalAlignConverter.cs
- ProcessModelInfo.cs
- CompositeDataBoundControl.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- Parallel.cs
- SessionStateSection.cs
- EntityKeyElement.cs
- SafeProcessHandle.cs
- AuthenticationException.cs
- NavigatorInvalidBodyAccessException.cs
- DataGridViewHeaderCell.cs
- XslCompiledTransform.cs
- LinqDataView.cs
- SafeCertificateStore.cs
- DataKeyArray.cs
- RoutedEventHandlerInfo.cs
- GridView.cs
- Transform.cs
- CheckBoxList.cs
- ExtenderProviderService.cs
- FolderNameEditor.cs
- MissingFieldException.cs
- MailDefinition.cs
- DebugInfo.cs
- FileIOPermission.cs
- HijriCalendar.cs
- QuaternionKeyFrameCollection.cs
- AttributeEmitter.cs
- DeflateStreamAsyncResult.cs
- WorkItem.cs
- WindowsListViewItemStartMenu.cs
- XmlNamedNodeMap.cs
- ParamArrayAttribute.cs
- Form.cs
- x509utils.cs
- __Filters.cs
- MaskDescriptors.cs
- ClientSettings.cs
- ICollection.cs
- PointAnimationUsingKeyFrames.cs
- unsafenativemethodsother.cs
- ContextBase.cs
- _CookieModule.cs
- WorkflowLayouts.cs
- HttpCachePolicyWrapper.cs
- UnsignedPublishLicense.cs
- ColorAnimation.cs
- TaskExceptionHolder.cs
- DataSourceSelectArguments.cs
- ClientBuildManagerCallback.cs