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
- RectValueSerializer.cs
- MembershipUser.cs
- DataGridRowAutomationPeer.cs
- GACMembershipCondition.cs
- QilIterator.cs
- WebPartHeaderCloseVerb.cs
- DrawItemEvent.cs
- XmlLanguageConverter.cs
- ActivityContext.cs
- ByteAnimationBase.cs
- DataExpression.cs
- ItemsChangedEventArgs.cs
- RtType.cs
- BezierSegment.cs
- DesignerActionItem.cs
- ApplicationHost.cs
- wmiprovider.cs
- LinqDataSourceView.cs
- RightsManagementPermission.cs
- MinimizableAttributeTypeConverter.cs
- UncommonField.cs
- WriterOutput.cs
- OrderedEnumerableRowCollection.cs
- InputLanguageCollection.cs
- XmlSchemaDocumentation.cs
- RandomDelaySendsAsyncResult.cs
- ToolStripItemTextRenderEventArgs.cs
- CFStream.cs
- RootBrowserWindowProxy.cs
- SectionRecord.cs
- UIAgentAsyncParams.cs
- ChannelTraceRecord.cs
- EventTrigger.cs
- ReadOnlyDataSource.cs
- ListView.cs
- ObjectHandle.cs
- StringFreezingAttribute.cs
- LoginDesigner.cs
- EncryptedPackageFilter.cs
- OptionalRstParameters.cs
- WebPartDisplayModeCancelEventArgs.cs
- Bookmark.cs
- DataGridHelper.cs
- RectangleF.cs
- MetaColumn.cs
- UInt64.cs
- FileDialogPermission.cs
- BrowserTree.cs
- SafeNativeMethodsCLR.cs
- MergablePropertyAttribute.cs
- DataBoundControl.cs
- TemplatePartAttribute.cs
- FilteredSchemaElementLookUpTable.cs
- AutoGeneratedField.cs
- CapabilitiesRule.cs
- HttpStreamXmlDictionaryWriter.cs
- CircleEase.cs
- DelegatingHeader.cs
- SequentialUshortCollection.cs
- HMACSHA1.cs
- XmlSchemaExporter.cs
- NullableDoubleAverageAggregationOperator.cs
- StylusPointProperties.cs
- CodeMemberField.cs
- KeyConverter.cs
- ResourceCategoryAttribute.cs
- ByteAnimation.cs
- StringSorter.cs
- HttpCapabilitiesBase.cs
- MessageSecurityOverHttpElement.cs
- RelationshipConverter.cs
- BaseTemplateBuildProvider.cs
- BasePropertyDescriptor.cs
- HyperLinkStyle.cs
- XPathNode.cs
- BinaryOperationBinder.cs
- ProjectionNode.cs
- ValidatorCollection.cs
- BuilderPropertyEntry.cs
- DataSourceControl.cs
- ListViewUpdateEventArgs.cs
- MobileCategoryAttribute.cs
- ExpressionVisitor.cs
- xsdvalidator.cs
- ChainOfDependencies.cs
- ExpressionVisitor.cs
- TreeView.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- KeyedHashAlgorithm.cs
- EditingCoordinator.cs
- DbConnectionPool.cs
- StringTraceRecord.cs
- ModelTreeManager.cs
- IssuanceLicense.cs
- SafeArrayRankMismatchException.cs
- Switch.cs
- FakeModelItemImpl.cs
- ListControlActionList.cs
- ColorDialog.cs
- SpeechUI.cs