| File: System\Diagnostics\MonitoringDescriptionAttribute.cs | Web Access |
| Project: src\runtime\src\libraries\System.Diagnostics.Process\src\System.Diagnostics.Process.csproj (System.Diagnostics.Process) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.ComponentModel; namespace System.Diagnostics { /// <summary> /// DescriptionAttribute marks a property, event, or extender with a /// description. Visual designers can display this description when referencing /// the member. /// </summary> [AttributeUsage(AttributeTargets.All)] public class MonitoringDescriptionAttribute : DescriptionAttribute { private bool _replaced; /// <summary> /// Constructs a new sys description. /// </summary> public MonitoringDescriptionAttribute(string description) : base(description) { } /// <summary> /// Retrieves the description text. /// </summary> public override string Description { get { if (!_replaced) { _replaced = true; DescriptionValue = base.Description; } return base.Description; } } } }