Winner - debugger display!

This commit is contained in:
Amy Palamountain
2014-02-20 22:23:15 +13:00
parent 3a603361f5
commit b216c69377
7 changed files with 81 additions and 5 deletions
+14 -1
View File
@@ -1,5 +1,10 @@
namespace Octokit
using System;
using System.Diagnostics;
using System.Globalization;
namespace Octokit
{
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class ReferenceUpdate
{
public ReferenceUpdate(string sha) : this(sha, false)
@@ -16,5 +21,13 @@
public string Sha { get; private set; }
public bool Force { get; private set; }
internal string DebuggerDisplay
{
get
{
return String.Format(CultureInfo.InvariantCulture, "Sha: {0} Force: {1}", Sha, Force);
}
}
}
}