public override int GetHashCode() { unchecked { int hashCode = DateProperty.GetHashCode(); hashCode = (hashCode * 397) ^ DateOffsetProperty.GetHashCode(); hashCode = (hashCode * 397) ^ BoolProperty.GetHashCode(); hashCode = (hashCode * 397) ^ IntProperty; hashCode = (hashCode * 397) ^ StringProperty.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { return(unchecked (this.IntField + this.IntField + ShortField + LongField.GetHashCode() + DoubleField.GetHashCode() + SingleField.GetHashCode() + DecimalField.GetHashCode() + (this.StringProperty ?? "").GetHashCode() + DateProperty.GetHashCode() + DateOffsetProperty.GetHashCode() + (AnyProperty ?? string.Empty).GetHashCode() )); }
public bool Equals(TestResource other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } if (!DateProperty.Equals(other.DateProperty)) { return(false); } if (!DateOffsetProperty.Equals(other.DateOffsetProperty) && DateOffsetProperty != DateTimeOffset.MinValue && other.DateOffsetProperty != DateTimeOffset.MinValue) { return(false); } if (!BoolProperty.Equals(other.BoolProperty)) { return(false); } if (IntProperty != other.IntProperty) { return(false); } if (!string.Equals(StringProperty, other.StringProperty)) { return(false); } if (ReferenceEquals(Links, other.Links)) { return(true); } if (ReferenceEquals(null, other.Links)) { return(false); } if (ReferenceEquals(null, Links)) { return(false); } if (!Links.Equals(other.Links)) { return(false); } return(true); }
public bool Equals(TestRequest other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(DateProperty.Equals(other.DateProperty) && DateOffsetProperty.Equals(other.DateOffsetProperty) && BoolProperty.Equals(other.BoolProperty) && IntProperty == other.IntProperty && string.Equals(StringProperty, other.StringProperty)); }