mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-06 07:16:09 +00:00
33 lines
864 B
C#
33 lines
864 B
C#
using System.Diagnostics;
|
|
using System.Diagnostics.CodeAnalysis;
|
|
using System.Globalization;
|
|
|
|
namespace Octokit
|
|
{
|
|
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
|
public class RepositoryLanguage
|
|
{
|
|
public RepositoryLanguage() { }
|
|
|
|
public RepositoryLanguage(string name, long numberOfBytes)
|
|
{
|
|
Name = name;
|
|
NumberOfBytes = numberOfBytes;
|
|
}
|
|
|
|
public string Name { get; protected set; }
|
|
|
|
public long NumberOfBytes { get; protected set; }
|
|
|
|
[SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
|
internal string DebuggerDisplay
|
|
{
|
|
get
|
|
{
|
|
return string.Format(CultureInfo.InvariantCulture,
|
|
"RepositoryLangauge: Name: {0} Bytes: {1}", Name, NumberOfBytes);
|
|
}
|
|
}
|
|
}
|
|
}
|