public override int GetHashCode() { var hashCode = -2077317876; hashCode = hashCode * -1521134295 + DiskDriveMaker.GetHashCode(); hashCode = hashCode * -1521134295 + DiskDriveType.GetHashCode(); hashCode = hashCode * -1521134295 + InformationSize.GetHashCode(); return(hashCode); }
public DiskDriveInfoEx(Id <DiskDriveInfoEx> diskDriveId, Id <DiskDriveInfoEx> diskDriveDbId, DiskDriveMaker diskDriveMaker, string serialNumber, DiskDriveType diskDriveType, int?driveNumber, PartitionInfoExs partitionInfoExs, IList <Exception> exceptions) { DiskDriveId = diskDriveId; DiskDriveDbId = diskDriveDbId; DiskDriveMaker = diskDriveMaker; SerialNumber = serialNumber ?? throw new ArgumentNullException(nameof(serialNumber)); DiskDriveType = diskDriveType; DriveNumber = driveNumber; PartitionInfoExs = partitionInfoExs ?? throw new ArgumentNullException(nameof(partitionInfoExs)); Exceptions = exceptions ?? throw new ArgumentNullException(nameof(exceptions)); }
public override int GetHashCode() { var hashCode = 1057818730; hashCode = hashCode * -1521134295 + EqualityComparer <Id <DiskDriveInfoEx> > .Default.GetHashCode(DiskDriveId); hashCode = hashCode * -1521134295 + EqualityComparer <Id <DiskDriveInfoEx> > .Default.GetHashCode(DiskDriveDbId); hashCode = hashCode * -1521134295 + DiskDriveMaker.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(SerialNumber); hashCode = hashCode * -1521134295 + DiskDriveType.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <int?> .Default.GetHashCode(DriveNumber); hashCode = hashCode * -1521134295 + EqualityComparer <PartitionInfoExs> .Default.GetHashCode(PartitionInfoExs); hashCode = hashCode * -1521134295 + EqualityComparer <IList <Exception> > .Default.GetHashCode(Exceptions); return(hashCode); }
public DiskDriveSignil(DiskDriveMaker diskDriveMaker, DiskDriveType diskDriveType, Information informationSize) { DiskDriveMaker = diskDriveMaker; DiskDriveType = diskDriveType; InformationSize = informationSize; }