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
- HitTestParameters.cs
- metadatamappinghashervisitor.cs
- WebReferencesBuildProvider.cs
- StrongNameUtility.cs
- Boolean.cs
- DynamicUpdateCommand.cs
- RequiredFieldValidator.cs
- exports.cs
- TemplateControlParser.cs
- XmlNavigatorFilter.cs
- QueryAsyncResult.cs
- InvalidDataException.cs
- ClassicBorderDecorator.cs
- RecordsAffectedEventArgs.cs
- DelayedRegex.cs
- ScriptManager.cs
- ByteAnimation.cs
- WebResourceAttribute.cs
- XmlDataCollection.cs
- DrawingContextWalker.cs
- BufferedWebEventProvider.cs
- TypeSystem.cs
- UrlAuthorizationModule.cs
- SerialPinChanges.cs
- UIElement.cs
- LocatorPart.cs
- DataGridViewLinkColumn.cs
- SiteMapNode.cs
- DataSourceSelectArguments.cs
- TextTreeUndoUnit.cs
- IDispatchConstantAttribute.cs
- CategoryAttribute.cs
- Accessible.cs
- SqlDependencyUtils.cs
- BooleanSwitch.cs
- Polygon.cs
- GPPOINT.cs
- ComplexPropertyEntry.cs
- GroupItemAutomationPeer.cs
- XsltSettings.cs
- CounterCreationData.cs
- BypassElementCollection.cs
- OletxResourceManager.cs
- ImageCodecInfoPrivate.cs
- Attributes.cs
- ConfigXmlAttribute.cs
- Bitmap.cs
- ParameterCollection.cs
- DocumentViewerBase.cs
- MessageBox.cs
- TraceHandlerErrorFormatter.cs
- MessageHeaderException.cs
- ProfileGroupSettings.cs
- MatrixAnimationUsingPath.cs
- infer.cs
- Stroke.cs
- BindingContext.cs
- Ops.cs
- TextBreakpoint.cs
- PolyLineSegmentFigureLogic.cs
- SafeProcessHandle.cs
- Size3DConverter.cs
- URLString.cs
- MemoryRecordBuffer.cs
- EncodingFallbackAwareXmlTextWriter.cs
- IgnoreFileBuildProvider.cs
- RotateTransform3D.cs
- ItemDragEvent.cs
- ControllableStoryboardAction.cs
- NameObjectCollectionBase.cs
- HtmlInputFile.cs
- X509CertificateTrustedIssuerElementCollection.cs
- VectorCollection.cs
- SrgsElementList.cs
- UnmanagedMarshal.cs
- NaturalLanguageHyphenator.cs
- ActivationServices.cs
- AutoSizeToolBoxItem.cs
- PropertyPath.cs
- LoginName.cs
- PasswordRecoveryDesigner.cs
- CharConverter.cs
- BlurBitmapEffect.cs
- WebResourceUtil.cs
- RawStylusInputCustomData.cs
- RoutedEvent.cs
- FixedSOMGroup.cs
- KnowledgeBase.cs
- BuildProvider.cs
- WebPartCollection.cs
- DragCompletedEventArgs.cs
- SqlAliaser.cs
- DocumentViewerBase.cs
- Assert.cs
- ScrollableControl.cs
- CompareValidator.cs
- PngBitmapDecoder.cs
- GeneralTransform3DTo2DTo3D.cs
- StringAnimationBase.cs
- QuotedStringWriteStateInfo.cs