示例#1
0
 protected bool Equals(SearchResponse other)
 {
     return(Transactions.SequenceEqual(other.Transactions) &&
            string.Equals(TotalResults, other.TotalResults) &&
            IsPreviousPage.Equals(other.IsPreviousPage) &&
            IsNextPage.Equals(other.IsNextPage) &&
            FirstResult == other.FirstResult);
 }
示例#2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Transactions != null ? Transactions.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (TotalResults != null ? TotalResults.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ IsPreviousPage.GetHashCode();
         hashCode = (hashCode * 397) ^ IsNextPage.GetHashCode();
         hashCode = (hashCode * 397) ^ FirstResult;
         return(hashCode);
     }
 }