示例#1
0
 public GitLock(string id, NPath path, GitUser owner, DateTimeOffset locked_at)
 {
     this.id             = id;
     this.path           = path.IsInitialized ? path.ToString() : null;
     this.owner          = owner;
     this.lockedAtString = locked_at.ToUniversalTime().ToString(Constants.Iso8601FormatZ, CultureInfo.InvariantCulture);
 }
示例#2
0
 public bool Equals(GitUser other)
 {
     return
         (String.Equals(name, other.name) &&
          String.Equals(email, other.email)
         );
 }
示例#3
0
 public bool Equals(GitUser other)
 {
     return
         (String.Equals(name, other.name) &&
          Email.Equals(other.Email));
 }