예제 #1
0
 /// <summary>
 /// Generate HashCode using same fields used for Equals
 /// </summary>
 /// <returns></returns>
 public override int GetHashCode()
 {
     return
         (Id.GetHashCode() +
          Status.GetHashCode() +
          Guess.GetHashCode() +
          Renderings.GetHashCode() +
          Notes.GetHashCode() +
          Denials.ToString().GetHashCode());
 }
예제 #2
0
        public override bool Equals(object obj)
        {
            TermRendering other2 = obj as TermRendering;

            if (other2 == null)
            {
                return(base.Equals(obj));
            }

            return
                (Id == other2.Id &&
                 Status == other2.Status &&
                 Guess == other2.Guess &&
                 Renderings == other2.Renderings &&
                 Notes == other2.Notes &&
                 Denials.ToString() == other2.Denials.ToString());
        }