Code:
/ FX-1434 / FX-1434 / 1.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
- ImageAutomationPeer.cs
- RoutingService.cs
- SmiGettersStream.cs
- CopyOfAction.cs
- DateTimeSerializationSection.cs
- SqlDataSourceSelectingEventArgs.cs
- CallbackValidator.cs
- SQLDateTime.cs
- ScalarType.cs
- TrailingSpaceComparer.cs
- BCLDebug.cs
- NavigationCommands.cs
- CachingHintValidation.cs
- ImageCollectionEditor.cs
- MoveSizeWinEventHandler.cs
- ExpandCollapseProviderWrapper.cs
- SettingsPropertyNotFoundException.cs
- ECDsa.cs
- TextOutput.cs
- SelfIssuedAuthRSAPKCS1SignatureFormatter.cs
- FixedSOMGroup.cs
- GlyphRunDrawing.cs
- TargetControlTypeCache.cs
- GridLengthConverter.cs
- Int32EqualityComparer.cs
- DocumentSequence.cs
- CorrelationQuery.cs
- GlyphRun.cs
- ParagraphVisual.cs
- XmlReflectionImporter.cs
- SafeHandle.cs
- SqlCacheDependency.cs
- TextPattern.cs
- InvalidPropValue.cs
- QuestionEventArgs.cs
- VarRefManager.cs
- LogReservationCollection.cs
- IisTraceWebEventProvider.cs
- HttpRequestBase.cs
- EntityProxyFactory.cs
- ContextMenuStripGroup.cs
- StoreItemCollection.Loader.cs
- DocumentPageHost.cs
- OutputCacheSettingsSection.cs
- SqlProfileProvider.cs
- BindingUtils.cs
- RuntimeVariablesExpression.cs
- SettingsContext.cs
- AdapterDictionary.cs
- PropertyPath.cs
- FixedDocument.cs
- GeneralTransform2DTo3D.cs
- ControlAdapter.cs
- SqlExpressionNullability.cs
- Package.cs
- Collection.cs
- DataPagerField.cs
- Mutex.cs
- StorageEntityTypeMapping.cs
- DynamicMetaObject.cs
- RuntimeHandles.cs
- TextViewSelectionProcessor.cs
- ClassDataContract.cs
- PolygonHotSpot.cs
- rsa.cs
- SystemUdpStatistics.cs
- BaseEntityWrapper.cs
- FrameworkElementFactory.cs
- HostProtectionPermission.cs
- WebExceptionStatus.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- EntityDataSourceContainerNameConverter.cs
- SoapInteropTypes.cs
- OverlappedAsyncResult.cs
- SmtpSection.cs
- EntityCommandExecutionException.cs
- OutputCacheModule.cs
- RemoveStoryboard.cs
- TypedTableBaseExtensions.cs
- WebHttpBinding.cs
- PanelDesigner.cs
- StringExpressionSet.cs
- FeatureSupport.cs
- WorkflowTransactionOptions.cs
- XPathQilFactory.cs
- UnmanagedMarshal.cs
- FormViewUpdateEventArgs.cs
- EntitySqlQueryCacheEntry.cs
- KnownBoxes.cs
- FontResourceCache.cs
- HtmlInputImage.cs
- LinqDataSourceEditData.cs
- FontFamilyValueSerializer.cs
- QueryAsyncResult.cs
- XmlDocument.cs
- OneOfScalarConst.cs
- ArraySegment.cs
- SettingsAttributes.cs
- SqlError.cs
- CodeValidator.cs