using System.Diagnostics; using System.Globalization; namespace Octokit { /// /// Information about an author or committer. /// [DebuggerDisplay("{DebuggerDisplay,nq}")] public class Signature { /// /// Creates an instance of Signature with the required values. /// /// /// public Signature(string name, string email) { Ensure.ArgumentNotNullOrEmptyString(name, "name"); Ensure.ArgumentNotNullOrEmptyString(email, "email"); Name = name; Email = email; } /// /// The full name of the author/committer. /// public string Name { get; private set; } /// /// The email address of the author/committer. /// public string Email { get; private set; } internal string DebuggerDisplay { get { return string.Format(CultureInfo.InvariantCulture, "Name: {0} Email: {1}", Name, Email); } } } }