Пример #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (Month != 0)
            {
                hash ^= Month.GetHashCode();
            }
            if (Year != 0)
            {
                hash ^= Year.GetHashCode();
            }
            if (!string.IsNullOrEmpty(Institution))
            {
                hash ^= Institution.GetHashCode();
            }
            if (!string.IsNullOrEmpty(HashSHA256))
            {
                hash ^= Institution.GetHashCode();
            }
            if (Created != DateTime.MinValue)
            {
                hash ^= Created.GetHashCode();
            }

            return(hash);
        }
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = From.GetHashCode();
         hashCode = (hashCode * 397) ^ To.GetHashCode();
         hashCode = (hashCode * 397) ^ OnGoing.GetHashCode();
         hashCode = (hashCode * 397) ^ (Institution != null ? Institution.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Locations != null ? Locations.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Position != null ? Position.GetHashCode() : 0);
         return(hashCode);
     }
 }
Пример #3
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Institution != null ? Institution.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Area != null ? Area.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (StudyType != null ? StudyType.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Gpa != null ? Gpa.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Courses != null ? Courses.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Start.GetHashCode();
         hashCode = (hashCode * 397) ^ End.GetHashCode();
         return(hashCode);
     }
 }
Пример #4
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = (CompletionDate != null ? CompletionDate.GetHashCode() : 0);
         result = (result * 397) ^ (Institution != null ? Institution.GetHashCode() : 0);
         result = (result * 397) ^ (Degree != null ? Degree.GetHashCode() : 0);
         result = (result * 397) ^ (Major != null ? Major.GetHashCode() : 0);
         result = (result * 397) ^ (Description != null ? Description.GetHashCode() : 0);
         result = (result * 397) ^ (City != null ? City.GetHashCode() : 0);
         result = (result * 397) ^ (Country != null ? Country.GetHashCode() : 0);
         return(result);
     }
 }
Пример #5
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = ResumeId;
         hashCode = (hashCode * 397) ^ VacancyId;
         hashCode = (hashCode * 397) ^ (FirstName != null ? FirstName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (LastName != null ? LastName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Patronymic != null ? Patronymic.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ BirthDate.GetHashCode();
         hashCode = (hashCode * 397) ^ (Phone != null ? Phone.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Email != null ? Email.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Education != null ? Education.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Institution != null ? Institution.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Specialty != null ? Specialty.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Deleted.GetHashCode();
         return(hashCode);
     }
 }