Hot.Doge Debugger display!

This commit is contained in:
Amy Palamountain
2014-02-20 21:50:23 +13:00
parent c29cfd42ce
commit d35a6eea89
13 changed files with 143 additions and 5 deletions
+11
View File
@@ -1,4 +1,6 @@
using System;
using System.Diagnostics;
using System.Globalization;
using System.Text.RegularExpressions;
namespace Octokit
@@ -6,6 +8,7 @@ namespace Octokit
/// <summary>
/// Describes a new label to create via the <see cref="IIssuesLabelsClient.Create(string,string,NewLabel)"/> method.
/// </summary>
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class NewLabel
{
private string _color;
@@ -40,5 +43,13 @@ namespace Octokit
_color = value;
}
}
internal string DebuggerDisplay
{
get
{
return String.Format(CultureInfo.InvariantCulture, "Name: {0}", Name);
}
}
}
}