示例#1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = RootId.GetHashCode();
         hashCode = (hashCode * 397) ^ ParentId.GetHashCode();
         hashCode = (hashCode * 397) ^ Id.GetHashCode();
         return(hashCode);
     }
 }
示例#2
0
 public bool Equals(SessionId other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(RootId.Equals(other.RootId) && ParentId.Equals(other.ParentId) && Id.Equals(other.Id));
 }
示例#3
0
 public override string ToString()
 {
     return(EntityName + "@" + Id.ToString() + "@@" + RootId.ToString() + "||" + base.ToString());
 }