コード例 #1
0
            public override bool Equals(object obj)
            {
                if (!(obj is KarmaChange other))
                {
                    return(false);
                }

                // We don't care if the Name is different, because it could be "Aaron" or "Aaron Rosenberger"...same person.
                return(KarmaString.Equals(other.KarmaString) && UniqueId.Equals(other.UniqueId));
            }
コード例 #2
0
 public override int GetHashCode()
 {
     return(KarmaString.GetHashCode() * 17 + UniqueId.GetHashCode());
 }