public override int GetHashCode() { unchecked { int hashCode = base.GetHashCode(); hashCode = (hashCode * 397) ^ (VIN != null ? VIN.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (VehicleMake != null ? VehicleMake.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (VehicleModel != null ? VehicleModel.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (TyreSize != null ? TyreSize.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (VehicleType != null ? VehicleType.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (WFactor != null ? WFactor.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (KFactor != null ? KFactor.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (LFactor != null ? LFactor.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (OdometerReading != null ? OdometerReading.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Tampered.GetHashCode(); hashCode = (hashCode * 397) ^ (InvoiceNumber != null ? InvoiceNumber.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (InspectionInfo != null ? InspectionInfo.GetHashCode() : 0); hashCode = (hashCode * 397) ^ TachographHasAdapter.GetHashCode(); hashCode = (hashCode * 397) ^ (TachographAdapterSerialNumber != null ? TachographAdapterSerialNumber.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (TachographAdapterLocation != null ? TachographAdapterLocation.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (TachographCableColor != null ? TachographCableColor.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (MinorWorkDetails != null ? MinorWorkDetails.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (TachographType != null ? TachographType.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (CardSerialNumber != null ? CardSerialNumber.GetHashCode() : 0); hashCode = (hashCode * 397) ^ CalibrationTime.GetHashCode(); hashCode = (hashCode * 397) ^ IsDigital.GetHashCode(); hashCode = (hashCode * 397) ^ NewBattery.GetHashCode(); hashCode = (hashCode * 397) ^ (NewInspectionInfo != null ? NewInspectionInfo.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = (VehicleType != null ? VehicleType.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (VehicleBrand != null ? VehicleBrand.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (VehicleModel != null ? VehicleModel.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (StateNumber != null ? StateNumber.GetHashCode() : 0); return(hashCode); } }