public override int GetHashCode() { unchecked { int result = (Cookie != null ? Cookie.GetHashCode() : 0); result = (result * 397) ^ Features.GetHashCode(); result = (result * 397) ^ (FileFormatVersion != null ? FileFormatVersion.GetHashCode() : 0); result = (result * 397) ^ HeaderOffset.GetHashCode(); result = (result * 397) ^ TimeStamp.GetHashCode(); result = (result * 397) ^ (CreatorApplication != null ? CreatorApplication.GetHashCode() : 0); result = (result * 397) ^ (CreatorVersion != null ? CreatorVersion.GetHashCode() : 0); result = (result * 397) ^ CreatorHostOsType.GetHashCode(); result = (result * 397) ^ PhsyicalSize.GetHashCode(); result = (result * 397) ^ VirtualSize.GetHashCode(); result = (result * 397) ^ (DiskGeometry != null ? DiskGeometry.GetHashCode() : 0); result = (result * 397) ^ DiskType.GetHashCode(); result = (result * 397) ^ CheckSum.GetHashCode(); result = (result * 397) ^ UniqueId.GetHashCode(); result = (result * 397) ^ SavedState.GetHashCode(); result = (result * 397) ^ (Reserved != null ? Reserved.GetHashCode() : 0); result = (result * 397) ^ (RawData != null ? RawData.GetHashCode() : 0); return(result); } }
private bool Equals(DiskGeometry other) { return other.Cylinder == Cylinder && other.Heads == Heads && other.Sectors == Sectors; }
private bool Equals(DiskGeometry other) { return(other.Cylinder == Cylinder && other.Heads == Heads && other.Sectors == Sectors); }