diff options
author | Tim Clem <timothy.clem@gmail.com> | 2011-03-30 22:24:08 +0400 |
---|---|---|
committer | Tim Clem <timothy.clem@gmail.com> | 2011-03-30 22:24:08 +0400 |
commit | 99acd3c216fed578c9551166d852b2705cfca095 (patch) | |
tree | 10ee20d5bcda10ddea87e27ba5c98ffda4bf15ec /LibGit2Sharp/Signature.cs | |
parent | c2d181571490bc1aca35b61b6d01fd3e170ee153 (diff) |
add docs to signature
Diffstat (limited to 'LibGit2Sharp/Signature.cs')
-rw-r--r-- | LibGit2Sharp/Signature.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/LibGit2Sharp/Signature.cs b/LibGit2Sharp/Signature.cs index f518942e..1d2c33b9 100644 --- a/LibGit2Sharp/Signature.cs +++ b/LibGit2Sharp/Signature.cs @@ -3,6 +3,9 @@ using System.Runtime.InteropServices; namespace LibGit2Sharp { + /// <summary> + /// A signature + /// </summary> public class Signature { private readonly GitSignature sig = new GitSignature(); @@ -17,21 +20,36 @@ namespace LibGit2Sharp } } + /// <summary> + /// Initializes a new instance of the <see cref = "Signature" /> class. + /// </summary> + /// <param name = "name">The name.</param> + /// <param name = "email">The email.</param> + /// <param name = "when">The when.</param> public Signature(string name, string email, DateTimeOffset when) : this(NativeMethods.git_signature_new(name, email, when.ToSecondsSinceEpoch(), (int) when.Offset.TotalMinutes), false) { } + /// <summary> + /// Gets the name. + /// </summary> public string Name { get { return sig.Name; } } + /// <summary> + /// Gets the email. + /// </summary> public string Email { get { return sig.Email; } } + /// <summary> + /// Gets the date when this signature happened. + /// </summary> public DateTimeOffset When { get |