public override int GetHashCode() { // https://stackoverflow.com/a/263416/1149773 unchecked { int hash = 17; hash = hash * 23 + ClassId.GetHashCode(); hash = hash * 23 + SectionId.GetHashCode(); hash = hash * 23 + MediumId.GetHashCode(); hash = hash * 23 + StreamId.GetHashCode(); hash = hash * 23 + ShiftId.GetHashCode(); return(hash); } }
public override int GetHashCode() { // Check the link below for details (Jon Skeet was here) unchecked { int hash = 17; hash = hash * 23 + ClassId.GetHashCode(); hash = hash * 23 + SectionId.GetHashCode(); hash = hash * 23 + MediumId.GetHashCode(); hash = hash * 23 + StreamId.GetHashCode(); hash = hash * 23 + ShiftId.GetHashCode(); return(hash); } }