mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-01 02:18:44 +00:00
Update DebuggerDisplay in RepositoryRequest
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Globalization;
|
||||
@@ -57,7 +58,19 @@ namespace Octokit
|
||||
{
|
||||
get
|
||||
{
|
||||
return string.Format(CultureInfo.InvariantCulture, "Type: {0}, Sort: {1}, Direction: {2}", Type, Sort, Direction);
|
||||
var propValues = new List<string>();
|
||||
if (Type.HasValue)
|
||||
propValues.Add(string.Format(CultureInfo.InvariantCulture, "Type: {0}", Type));
|
||||
if (Sort.HasValue)
|
||||
propValues.Add(string.Format(CultureInfo.InvariantCulture, "Sort: {0}", Sort));
|
||||
if (Direction.HasValue)
|
||||
propValues.Add(string.Format(CultureInfo.InvariantCulture, "Direction: {0}", Direction));
|
||||
if (Visibility.HasValue)
|
||||
propValues.Add(string.Format(CultureInfo.InvariantCulture, "Visibility: {0}", Visibility));
|
||||
if (Affiliation.HasValue)
|
||||
propValues.Add(string.Format(CultureInfo.InvariantCulture, "Affiliation: {0}", Affiliation));
|
||||
|
||||
return string.Join(", ", propValues);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user