Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / DescriptionAttribute.cs / 1305376 / 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(); } #if !SILVERLIGHT ////// /// public override bool IsDefaultAttribute() { return (this.Equals(Default)); } #endif } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- X509PeerCertificateAuthenticationElement.cs
- DesignerDataStoredProcedure.cs
- XmlSchemaComplexContentRestriction.cs
- CodeTypeConstructor.cs
- BuildManagerHost.cs
- Vector3DAnimationBase.cs
- DataTableNewRowEvent.cs
- GroupBoxAutomationPeer.cs
- Point3D.cs
- ValidatedControlConverter.cs
- IndexedGlyphRun.cs
- MDIControlStrip.cs
- ImageListImage.cs
- ContentDefinition.cs
- XsltSettings.cs
- AnnotationResource.cs
- Propagator.JoinPropagator.cs
- HttpHeaderCollection.cs
- BatchParser.cs
- RequestCache.cs
- DataGridHeaderBorder.cs
- DataGridColumnDropSeparator.cs
- ListMarkerLine.cs
- NameSpaceEvent.cs
- FileLoadException.cs
- ContentHostHelper.cs
- DataGridViewSelectedColumnCollection.cs
- OutKeywords.cs
- DataGridViewControlCollection.cs
- LockedHandleGlyph.cs
- Menu.cs
- ProjectionCamera.cs
- ActivitiesCollection.cs
- SqlClientPermission.cs
- TraceContextRecord.cs
- WrapPanel.cs
- Rect.cs
- JsonEnumDataContract.cs
- DependencyProperty.cs
- Array.cs
- controlskin.cs
- ConfigurationStrings.cs
- XmlNotation.cs
- DropDownButton.cs
- WebUtil.cs
- WebPartVerbsEventArgs.cs
- AutomationPropertyInfo.cs
- EntityDataSourceMemberPath.cs
- TakeOrSkipQueryOperator.cs
- PersonalizationState.cs
- DataGridViewComboBoxCell.cs
- LoginCancelEventArgs.cs
- Internal.cs
- TypedReference.cs
- _SSPISessionCache.cs
- MultiByteCodec.cs
- _FtpControlStream.cs
- CompositeDataBoundControl.cs
- DynamicResourceExtensionConverter.cs
- QueryExtender.cs
- TextPenaltyModule.cs
- PersonalizationAdministration.cs
- Component.cs
- figurelength.cs
- UndoEngine.cs
- sitestring.cs
- propertytag.cs
- DataSourceCacheDurationConverter.cs
- DependencySource.cs
- QilScopedVisitor.cs
- DataViewListener.cs
- PackageDigitalSignatureManager.cs
- ThreadPool.cs
- ReflectTypeDescriptionProvider.cs
- MissingMethodException.cs
- ValidationRuleCollection.cs
- RankException.cs
- SafeNativeMethodsOther.cs
- Visitors.cs
- FusionWrap.cs
- WebHttpSecurityElement.cs
- QueryContinueDragEventArgs.cs
- TextWriter.cs
- ConfigurationElementProperty.cs
- CompareValidator.cs
- TextSelectionProcessor.cs
- ConfigurationElementProperty.cs
- StreamGeometry.cs
- DetailsViewPagerRow.cs
- BaseCollection.cs
- ThemeDictionaryExtension.cs
- NegotiationTokenAuthenticator.cs
- SoapException.cs
- EventProxy.cs
- RemotingConfigParser.cs
- CodePageEncoding.cs
- ThreadAttributes.cs
- SchemaNamespaceManager.cs
- ObjectDisposedException.cs
- ThreadInterruptedException.cs