Beispiel #1
0
 /// <summary>
 /// Gets a hash-code for this object based on current values.
 /// </summary>
 public override int GetHashCode()
 {
     return
         ((StartColor != null ? StartColor.GetHashCode() : 0) ^
          (EndColor != null ? EndColor.GetHashCode() : 0) ^
          (Texture != null ? Texture.GetHashCode() : 0) ^
          Angle.GetHashCode() ^
          Scale.GetHashCode() ^
          WrapMode.GetHashCode() ^
          BrushType.GetHashCode());
 }
Beispiel #2
0
 /// <inheritdoc/>
 public override int GetHashCode()
 {
     return(StartColor.GetHashCode() ^ (EndColor.GetHashCode() << 1) ^
            ((Angle.GetHashCode() + 1) << 2) ^ ((Focus.GetHashCode() + 1) << 10) ^ ((Contrast.GetHashCode() + 1) << 20));
 }