Adding dem debugger displays

This commit is contained in:
Amy Palamountain
2014-02-20 22:13:38 +13:00
parent d35a6eea89
commit 3a603361f5
9 changed files with 91 additions and 10 deletions
+11 -1
View File
@@ -1,7 +1,10 @@
using System;
using System.Diagnostics;
using System.Globalization;
namespace Octokit
{
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class SearchCode
{
/// <summary>
@@ -38,6 +41,13 @@ namespace Octokit
/// Repo where this file belongs to
/// </summary>
public Repository Repository { get; set; }
}
internal string DebuggerDisplay
{
get
{
return String.Format(CultureInfo.InvariantCulture, "Sha: {0} Name: {1}", Sha, Name);
}
}
}
}