コード例 #1
0
 /// <summary>Returns a hash code for this <see cref="DisplayDeviceMode"/> structure.</summary>
 /// <returns>Returns a hash code for this <see cref="DisplayDeviceMode"/> structure.</returns>
 public override int GetHashCode()
 {
     return(this.DeviceName.GetHashCode() ^ specVersion.GetHashCode() ^ driverVersion.GetHashCode() ^ structureSize.GetHashCode() ^ driverExtra.GetHashCode() ^
            fields.GetHashCode() ^ displayInfo.GetHashCode() ^ color.GetHashCode() ^ duplex.GetHashCode() ^ yResolution.GetHashCode() ^ ttOption.GetHashCode() ^ collate.GetHashCode() ^
            (formName == null ? 0 : formName.GetHashCode()) ^ logPixels.GetHashCode() ^ bitsPerPel ^ pelsWidth ^ pelsHeight ^ displayFlags ^ displayFrequency ^ icmMethod ^ icmIntent ^
            mediaType ^ ditherType ^ reserved1 ^ reserved2 ^ panningWidth ^ panningHeight);
 }