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
- NamespaceCollection.cs
- HttpSysSettings.cs
- StateDesigner.Helpers.cs
- WebPartConnectionsEventArgs.cs
- SoundPlayer.cs
- Region.cs
- ADMembershipProvider.cs
- DocumentSchemaValidator.cs
- BadImageFormatException.cs
- ServiceProviders.cs
- ConnectionManagementElementCollection.cs
- ConnectionManagementElementCollection.cs
- MeshGeometry3D.cs
- LinqDataSourceView.cs
- ViewKeyConstraint.cs
- HttpModuleCollection.cs
- PartialArray.cs
- CopyAttributesAction.cs
- DataControlFieldCell.cs
- LinearGradientBrush.cs
- BeginStoryboard.cs
- BindUriHelper.cs
- Rect3DValueSerializer.cs
- TypeDelegator.cs
- HttpResponseHeader.cs
- Guid.cs
- SessionParameter.cs
- errorpatternmatcher.cs
- Line.cs
- _NegoState.cs
- NumericPagerField.cs
- LocalizableAttribute.cs
- XPathNodePointer.cs
- ParamArrayAttribute.cs
- AliasGenerator.cs
- GlyphingCache.cs
- Msec.cs
- WindowsPen.cs
- Binding.cs
- CompilerLocalReference.cs
- _DomainName.cs
- _ShellExpression.cs
- OperandQuery.cs
- SelectionChangedEventArgs.cs
- DBCommand.cs
- KeyValueInternalCollection.cs
- ping.cs
- ConvertEvent.cs
- CacheForPrimitiveTypes.cs
- XmlCompatibilityReader.cs
- RichTextBoxAutomationPeer.cs
- CodeTypeDelegate.cs
- ActiveXSite.cs
- _NtlmClient.cs
- SqlSelectClauseBuilder.cs
- ApplicationManager.cs
- UiaCoreApi.cs
- ApplicationManager.cs
- DataStorage.cs
- PagesSection.cs
- ResXResourceReader.cs
- CLSCompliantAttribute.cs
- AuthenticatingEventArgs.cs
- safex509handles.cs
- SkinBuilder.cs
- Attribute.cs
- SplashScreen.cs
- ZipIOLocalFileBlock.cs
- SizeChangedEventArgs.cs
- IndentedWriter.cs
- ZipPackagePart.cs
- UndirectedGraph.cs
- TypedReference.cs
- X509WindowsSecurityToken.cs
- HostedElements.cs
- HttpWebRequest.cs
- MetadataArtifactLoaderCompositeResource.cs
- UrlAuthorizationModule.cs
- IListConverters.cs
- LassoHelper.cs
- LiteralControl.cs
- ResourceDescriptionAttribute.cs
- DoubleLinkListEnumerator.cs
- GridViewRowEventArgs.cs
- CompileLiteralTextParser.cs
- ColorTranslator.cs
- KerberosTicketHashIdentifierClause.cs
- _SslState.cs
- WebProxyScriptElement.cs
- ScriptControlDescriptor.cs
- ExpressionParser.cs
- DoubleKeyFrameCollection.cs
- Propagator.cs
- ObjectComplexPropertyMapping.cs
- AssemblyCache.cs
- BinaryObjectWriter.cs
- ServiceObjectContainer.cs
- AnnotationDocumentPaginator.cs
- EpmTargetPathSegment.cs
- ArgumentNullException.cs