public override int GetHashCode() { int hashCode1 = FromDate == null ? 0 : FromDate.GetHashCode(); int hashCode2 = ToDate == null ? 0 : ToDate.GetHashCode(); return(hashCode1 ^ hashCode2); }