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
- PinnedBufferMemoryStream.cs
- StrokeNodeData.cs
- StoreItemCollection.Loader.cs
- PasswordTextNavigator.cs
- MultiBinding.cs
- BorderGapMaskConverter.cs
- SpeechSeg.cs
- TryExpression.cs
- CodeSubDirectoriesCollection.cs
- Mapping.cs
- TypeHelper.cs
- ToolStripSystemRenderer.cs
- SpellerStatusTable.cs
- PropertyIDSet.cs
- GenerateScriptTypeAttribute.cs
- Attributes.cs
- CharacterMetricsDictionary.cs
- LayoutEngine.cs
- LambdaCompiler.Unary.cs
- ViewDesigner.cs
- EntityException.cs
- JavaScriptString.cs
- RayHitTestParameters.cs
- ConfigurationHandlersInstallComponent.cs
- SetStateEventArgs.cs
- TaskHelper.cs
- EventManager.cs
- IfElseDesigner.xaml.cs
- RuntimeConfig.cs
- QuadraticBezierSegment.cs
- RegexCode.cs
- EventWaitHandleSecurity.cs
- BitFlagsGenerator.cs
- SoapAttributeOverrides.cs
- CodeTypeMemberCollection.cs
- TransformerConfigurationWizardBase.cs
- SwitchElementsCollection.cs
- CollectionsUtil.cs
- FindCriteriaElement.cs
- TransformerConfigurationWizardBase.cs
- MsmqHostedTransportManager.cs
- SqlParameterizer.cs
- SecUtil.cs
- Mappings.cs
- AppDomain.cs
- SparseMemoryStream.cs
- HttpWebRequestElement.cs
- MobileUITypeEditor.cs
- DataGridHeaderBorder.cs
- CommandValueSerializer.cs
- MenuItemBindingCollection.cs
- ListGeneralPage.cs
- TableLayout.cs
- ProxyGenerationError.cs
- HtmlTableCellCollection.cs
- HttpListenerContext.cs
- TreeNodeMouseHoverEvent.cs
- XmlTextReader.cs
- WebPartTransformer.cs
- PersonalizationProviderHelper.cs
- KeyBinding.cs
- MaterialGroup.cs
- DataGridViewCellStateChangedEventArgs.cs
- ProtectedConfigurationSection.cs
- ModuleConfigurationInfo.cs
- WebPartRestoreVerb.cs
- AspCompat.cs
- SecurityResources.cs
- versioninfo.cs
- AVElementHelper.cs
- ContentFileHelper.cs
- WebEvents.cs
- ResourceDisplayNameAttribute.cs
- EpmCustomContentWriterNodeData.cs
- ControlTemplate.cs
- HttpResponse.cs
- HtmlInputButton.cs
- TextElement.cs
- MetadataException.cs
- AsyncOperationManager.cs
- DESCryptoServiceProvider.cs
- MimeWriter.cs
- PartialCachingAttribute.cs
- DataSourceControl.cs
- WebPartVerb.cs
- PolicyFactory.cs
- EnumerableValidator.cs
- SupportsEventValidationAttribute.cs
- _ConnectOverlappedAsyncResult.cs
- OracleTransaction.cs
- MemoryPressure.cs
- WebBrowser.cs
- WriteFileContext.cs
- NamedElement.cs
- MethodBuilderInstantiation.cs
- EndOfStreamException.cs
- WorkflowServiceBehavior.cs
- WebPartAddingEventArgs.cs
- TagNameToTypeMapper.cs
- DataGridViewButtonCell.cs