Debugger display ++

This commit is contained in:
Amy Palamountain
2014-02-19 21:43:35 +13:00
parent 8b39f4f2ce
commit fa9c618302
12 changed files with 141 additions and 5 deletions

View File

@@ -1,7 +1,10 @@
using System;
using System.Diagnostics;
using System.Globalization;
namespace Octokit
{
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class EventInfo
{
/// <summary>
@@ -33,6 +36,14 @@ namespace Octokit
/// Date the event occurred for the issue/pull request.
/// </summary>
public DateTimeOffset CreatedAt { get; set; }
internal string DebuggerDisplay
{
get
{
return String.Format(CultureInfo.InvariantCulture, "Id: {0} CreatedAt: {1}", Id, CreatedAt);
}
}
}
public enum EventInfoState