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
- PageParser.cs
- ReflectPropertyDescriptor.cs
- DeclarativeCatalogPartDesigner.cs
- TabControlEvent.cs
- TileModeValidation.cs
- sqlcontext.cs
- XamlTreeBuilder.cs
- OletxCommittableTransaction.cs
- Int32Collection.cs
- ReferenceEqualityComparer.cs
- StorageRoot.cs
- WindowClosedEventArgs.cs
- ImageIndexConverter.cs
- UxThemeWrapper.cs
- Component.cs
- Point4DValueSerializer.cs
- MasterPageBuildProvider.cs
- validationstate.cs
- ObjectListDesigner.cs
- BindingGroup.cs
- DesignerListAdapter.cs
- Label.cs
- TextStore.cs
- View.cs
- SmiMetaDataProperty.cs
- SqlDataAdapter.cs
- SoapCodeExporter.cs
- DataMemberFieldConverter.cs
- DATA_BLOB.cs
- SecurityTokenSerializer.cs
- ManualResetEvent.cs
- EdmFunctions.cs
- TraceContextRecord.cs
- DeobfuscatingStream.cs
- XmlLanguageConverter.cs
- Point3DAnimationUsingKeyFrames.cs
- LinqDataSourceDisposeEventArgs.cs
- BasicBrowserDialog.designer.cs
- Bits.cs
- DataBoundControlHelper.cs
- HostingPreferredMapPath.cs
- RectangleGeometry.cs
- ImageMapEventArgs.cs
- ConfigurationSettings.cs
- Descriptor.cs
- SeparatorAutomationPeer.cs
- TextServicesCompartmentContext.cs
- PowerEase.cs
- LocalizationParserHooks.cs
- DataServiceQueryOfT.cs
- WebPartDisplayMode.cs
- VarRefManager.cs
- DebugManager.cs
- DbConnectionPoolCounters.cs
- TransformConverter.cs
- EntityStoreSchemaFilterEntry.cs
- SourceFilter.cs
- SelectionUIHandler.cs
- ThreadTrace.cs
- Button.cs
- DragEvent.cs
- BasicCellRelation.cs
- DataGridViewRowStateChangedEventArgs.cs
- Rotation3DAnimationBase.cs
- MetadataException.cs
- SessionEndingEventArgs.cs
- ChtmlTextWriter.cs
- ADConnectionHelper.cs
- IIS7WorkerRequest.cs
- ProtocolReflector.cs
- ZipIOBlockManager.cs
- SynchronizedInputPattern.cs
- WindowManager.cs
- Regex.cs
- SettingsPropertyValueCollection.cs
- AutomationAttributeInfo.cs
- XmlTextEncoder.cs
- ShutDownListener.cs
- MailBnfHelper.cs
- SmiMetaData.cs
- ListBindingConverter.cs
- ReadOnlyDataSourceView.cs
- Executor.cs
- URLMembershipCondition.cs
- ManagementEventWatcher.cs
- NavigatingCancelEventArgs.cs
- SBCSCodePageEncoding.cs
- DataServiceException.cs
- ControlBuilder.cs
- XmlKeywords.cs
- ObservableCollection.cs
- XmlLanguage.cs
- BitStream.cs
- SqlUDTStorage.cs
- ISCIIEncoding.cs
- DetailsViewRow.cs
- BaseParaClient.cs
- OrderedEnumerableRowCollection.cs
- ListenerHandler.cs
- WSDualHttpSecurity.cs