mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-08 04:40:54 +00:00
Chipping away at debugger display
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user