예제 #1
0
 protected bool Equals(RefreshInstruction other)
 {
     return(RefreshType == other.RefreshType &&
            RefresherId.Equals(other.RefresherId) &&
            GuidId.Equals(other.GuidId) &&
            IntId == other.IntId &&
            string.Equals(JsonIds, other.JsonIds) &&
            string.Equals(JsonPayload, other.JsonPayload));
 }
예제 #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (int)RefreshType;
         hashCode = (hashCode * 397) ^ RefresherId.GetHashCode();
         hashCode = (hashCode * 397) ^ GuidId.GetHashCode();
         hashCode = (hashCode * 397) ^ IntId;
         hashCode = (hashCode * 397) ^ (JsonIds != null ? JsonIds.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (JsonPayload != null ? JsonPayload.GetHashCode() : 0);
         return(hashCode);
     }
 }