Example #1
0
 public override int GetHashCode()
 {
     int result = 17;
     int ret = GetType().GetHashCode();
     result = 37 * result + ret;
     ret = (int)RelativeZxid;
     result = 37 * result + ret;
     ret = DataWatches.GetHashCode();
     result = 37 * result + ret;
     ret = ExistWatches.GetHashCode();
     result = 37 * result + ret;
     ret = ChildWatches.GetHashCode();
     result = 37 * result + ret;
     return result;
 }
Example #2
0
 public override bool Equals(object obj)
 {
     SetWatches peer = (SetWatches)obj;
     if (peer == null)
     {
         return false;
     }
     if (Object.ReferenceEquals(peer, this))
     {
         return true;
     }
     bool ret = false;
     ret = (RelativeZxid == peer.RelativeZxid);
     if (!ret) return ret;
     ret = DataWatches.Equals(peer.DataWatches);
     if (!ret) return ret;
     ret = ExistWatches.Equals(peer.ExistWatches);
     if (!ret) return ret;
     ret = ChildWatches.Equals(peer.ChildWatches);
     if (!ret) return ret;
     return ret;
 }