mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-05-27 00:23:39 +00:00
4e804f61a6
* updated XML docs and added some missing bits. * prefer nameof(x) over literal "x"
34 lines
809 B
C#
34 lines
809 B
C#
using System.Diagnostics;
|
|
using System.Globalization;
|
|
|
|
namespace Octokit
|
|
{
|
|
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
|
public class GitIgnoreTemplate
|
|
{
|
|
public GitIgnoreTemplate(string name, string source)
|
|
{
|
|
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
|
Ensure.ArgumentNotNullOrEmptyString(source, nameof(source));
|
|
|
|
Name = name;
|
|
Source = source;
|
|
}
|
|
|
|
public GitIgnoreTemplate()
|
|
{
|
|
}
|
|
|
|
public string Name { get; protected set; }
|
|
public string Source { get; protected set; }
|
|
|
|
internal string DebuggerDisplay
|
|
{
|
|
get
|
|
{
|
|
return string.Format(CultureInfo.InvariantCulture, "GitIgnore: {0}", Name);
|
|
}
|
|
}
|
|
}
|
|
}
|