コード例 #1
0
ファイル: BrushData.cs プロジェクト: lanicon/CodeForDotNet
 /// <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());
 }
コード例 #2
0
ファイル: Fills.cs プロジェクト: frontlook-admin/FastReport
 /// <inheritdoc/>
 public override int GetHashCode()
 {
     return(StartColor.GetHashCode() ^ (EndColor.GetHashCode() << 1) ^
            ((Angle.GetHashCode() + 1) << 2) ^ ((Focus.GetHashCode() + 1) << 10) ^ ((Contrast.GetHashCode() + 1) << 20));
 }