Files
octokit.net/Octokit/Models/Response/RepositoryContentLicense.cs
Itai Bar-Haim 4e804f61a6 Prefer using nameof(x) over literal "x" (#1781)
* updated XML docs and added some missing bits.

* prefer nameof(x) over literal "x"
2018-03-07 20:43:10 +10:00

35 lines
1.0 KiB
C#

using System.Diagnostics;
using System.Globalization;
namespace Octokit
{
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class RepositoryContentLicense : RepositoryContentInfo
{
public RepositoryContentLicense(LicenseMetadata license, string name, string path, string sha, int size, ContentType type, string downloadUrl, string url, string gitUrl, string htmlUrl)
: base(name, path, sha, size, type, downloadUrl, url, gitUrl, htmlUrl)
{
Ensure.ArgumentNotNull(license, nameof(license));
License = license;
}
public RepositoryContentLicense()
{
}
/// <summary>
/// License information
/// </summary>
public LicenseMetadata License { get; protected set; }
internal new string DebuggerDisplay
{
get
{
return string.Format(CultureInfo.InvariantCulture, "License: {0} {1}", this.License?.Key, base.DebuggerDisplay);
}
}
}
}