//------------------------------------------------------------------------------ /// /// Copyright (c) Microsoft Corporation. All Rights Reserved. /// Information Contained Herein is Proprietary and Confidential. /// //------------------------------------------------------------------------------ /* */ namespace Microsoft.VSDesigner.WMI { using System.Diagnostics; using System; using System.ComponentModel; /// /// /// /// DescriptionAttribute marks a property, event, or extender with a /// description. Visual designers can display this description when referencing /// the member. /// /// /// /// /// /// [AttributeUsage(AttributeTargets.All)] internal class WMISysDescriptionAttribute : DescriptionAttribute { private bool replaced = false; /// /// Constructs a new sys description. /// /// /// description text. /// public WMISysDescriptionAttribute(string description) : base(description) { } /// /// Retrieves the description text. /// /// /// description /// public override string Description { get { if (!replaced) { replaced = true; DescriptionValue = WMISys.GetString(base.DescriptionValue); } return DescriptionValue; } } } }