Пример #1
0
        /// <inheritdoc />
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = PhysicalGPU != null?PhysicalGPU.GetHashCode() : 0;

                hashCode = (hashCode * 397) ^ (Output != null ? Output.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ Overlap.GetHashCode();
                return(hashCode);
            }
        }
Пример #2
0
 /// <inheritdoc />
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Resolution.GetHashCode();
         hashCode = (hashCode * 397) ^ Frequency;
         hashCode = (hashCode * 397) ^ (int)FrequencyInMillihertz;
         hashCode = (hashCode * 397) ^ (int)TopologyMode;
         hashCode = (hashCode * 397) ^ Overlap.GetHashCode();
         return(hashCode);
     }
 }
Пример #3
0
 /// <inheritdoc />
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = DisplayDevice?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ Overlap.GetHashCode();
         hashCode = (hashCode * 397) ^ (int)Rotation;
         hashCode = (hashCode * 397) ^ (int)CloneGroup;
         hashCode = (hashCode * 397) ^ (int)PixelShiftType;
         return(hashCode);
     }
 }