Esempio n. 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());
 }
Esempio n. 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = 17;
         hash = hash * 23 + type.GetHashCode();
         hash = hash * 23 + wrap.GetHashCode();
         hash = hash * 23 + colorGradients.GetHashCode();
         hash = hash * 23 + start.GetHashCode();
         hash = hash * 23 + end.GetHashCode();
         hash = hash * 23 + center.GetHashCode();
         return(hash);
     }
 }
 public override int GetHashCode()
 {
     return(34944597 + type.GetHashCode());
 }