Esempio n. 1
0
 protected bool Equals(Load load)
 {
     return(Id == load.Id && Lectures.Equals(load.Lectures) && Laboratory.Equals(load.Laboratory) &&
            Practical.Equals(load.Practical) && Test.Equals(load.Test) &&
            Consultations.Equals(load.Consultations) && Exams.Equals(load.Exams) &&
            Nir.Equals(load.Nir) && CourseDesigning.Equals(load.CourseDesigning) &&
            Vkr.Equals(load.Vkr) && Gek.Equals(load.Gek) && Gak.Equals(load.Gak) &&
            Rma.Equals(load.Rma) && Rmp.Equals(load.Rmp));
 }
Esempio n. 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Id;
         hashCode = (hashCode * 397) ^ Lectures.GetHashCode();
         hashCode = (hashCode * 397) ^ Laboratory.GetHashCode();
         hashCode = (hashCode * 397) ^ Practical.GetHashCode();
         hashCode = (hashCode * 397) ^ Test.GetHashCode();
         hashCode = (hashCode * 397) ^ Consultations.GetHashCode();
         hashCode = (hashCode * 397) ^ Exams.GetHashCode();
         hashCode = (hashCode * 397) ^ Nir.GetHashCode();
         hashCode = (hashCode * 397) ^ CourseDesigning.GetHashCode();
         hashCode = (hashCode * 397) ^ Vkr.GetHashCode();
         hashCode = (hashCode * 397) ^ Gek.GetHashCode();
         hashCode = (hashCode * 397) ^ Gak.GetHashCode();
         hashCode = (hashCode * 397) ^ Rma.GetHashCode();
         hashCode = (hashCode * 397) ^ Rmp.GetHashCode();
         return(hashCode);
     }
 }