未验证 提交 8fd0a906 编写于 作者: M Marek Safar 提交者: GitHub

Make it clearer what internal TimersDescriptionAttribute ctor is for (#51075)

上级 47317fc6
......@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
using System.ComponentModel;
using System.Diagnostics;
namespace System.Timers
{
......@@ -23,7 +24,11 @@ public class TimersDescriptionAttribute : DescriptionAttribute
/// <summary>
/// Constructs a new localized sys description.
/// </summary>
internal TimersDescriptionAttribute(string description, string defaultValue) : base(SR.GetResourceString(description, defaultValue)) { }
internal TimersDescriptionAttribute(string description, string unused) : base(SR.GetResourceString(description))
{
// Needed for overload resolution
Debug.Assert(unused == null);
}
/// <summary>
/// Retrieves the description text.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册