コード例 #1
0
        public override int GetHashCode()
        {
            int result = 1;

            result = (result * 397) ^ CurrentYear.GetHashCode();
            result = (result * 397) ^ Id.GetHashCode();
            result = (result * 397) ^ (RegistrationNumber != null ? RegistrationNumber.GetHashCode() : 0);
            result = (result * 397) ^ (Remark != null ? Remark.GetHashCode() : 0);
            result = (result * 397) ^ StudentStatus.GetHashCode();
            result = (result * 397) ^ (StudentNumber != null ? StudentNumber.GetHashCode() : 0);
            result = (result * 397) ^ CurrentCGPA.GetHashCode();
            result = (result * 397) ^ CurrentCTCU.GetHashCode();
            result = (result * 397) ^ CurrentAward.GetHashCode();
            return(result);
        }
コード例 #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Created.GetHashCode();
         hashCode = (hashCode * 397) ^ (Office != null ? Office.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (RegistrationNumber != null ? RegistrationNumber.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (TachographMake != null ? TachographMake.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (TachographModel != null ? TachographModel.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (SerialNumber != null ? SerialNumber.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ InspectionDate.GetHashCode();
         hashCode = (hashCode * 397) ^ (Technician != null ? Technician.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (CustomerContact != null ? CustomerContact.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (DepotName != null ? DepotName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (CompanyName != null ? CompanyName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ UserId;
         hashCode = (hashCode * 397) ^ Uploaded.GetHashCode();
         return(hashCode);
     }
 }
コード例 #3
0
 public override int GetHashCode()
 {
     return(RegistrationNumber != null?RegistrationNumber.GetHashCode() : 0);
 }
コード例 #4
0
ファイル: Vehicle.cs プロジェクト: Rocangus/Garage-V1-0
 public override int GetHashCode()
 {
     return(RegistrationNumber.GetHashCode());
 }