//------------------------------------------------------------------------------ /// /// 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)] public 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 GetDescription() { if (!replaced) { replaced = true; description = WMISys.GetString(base.GetDescription()); } return base.GetDescription(); } } }