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
+13 -1
View File
@@ -1,10 +1,14 @@
using System.Diagnostics.CodeAnalysis;
using System;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
namespace Octokit
{
/// <summary>
/// Describes a new repository to create via the <see cref="IRepositoriesClient.Create(NewRepository)"/> method.
/// </summary>
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class NewRepository
{
/// <summary>
@@ -57,5 +61,13 @@ namespace Octokit
/// Optional. Gets or sets the ID of the team to grant access to this repository. This is only valid when creating a repository for an organization.
/// </summary>
public int? TeamId { get; set; }
internal string DebuggerDisplay
{
get
{
return String.Format(CultureInfo.InvariantCulture, "Name: {0} Description: {1}", Name, Description);
}
}
}
}