Chipping away at debugger display

This commit is contained in:
Amy Palamountain
2014-02-19 19:13:16 +13:00
parent 4da4c39d2b
commit 7644e0e865
4 changed files with 46 additions and 2 deletions
+13
View File
@@ -1,9 +1,14 @@
using System;
using System.Diagnostics;
using System.Globalization;
namespace Octokit
{
/// <summary>
/// Represents updatable fields on a user. Values that are null will not be sent in the request.
/// Use string.empty if you want to clear clear a value.
/// </summary>
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class UserUpdate
{
/// <summary>
@@ -40,5 +45,13 @@ namespace Octokit
/// Tells if this user is currently hireable.
/// </summary>
public bool? Hireable { get; set; }
internal string DebuggerDisplay
{
get
{
return String.Format(CultureInfo.InvariantCulture, "Name: {0}", Name);
}
}
}
}