Ejemplo n.º 1
0
 /// <inheritdoc/>
 public override int GetHashCode()
 {
     return(ImageData.GetHashCode() ^ (ImageWidth.GetHashCode() << 1) ^
            ((ImageHeight.GetHashCode() + 1) << 2) ^
            ((PreserveAspectRatio.GetHashCode() + 1) << 10) ^
            ((WrapMode.GetHashCode() + 1) << 20) ^
            ((ImageOffsetX.GetHashCode() + 1) << 40) ^
            ((ImageOffsetY.GetHashCode() + 1) << 60));
 }
Ejemplo n.º 2
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());
 }
Ejemplo n.º 3
0
 public override int GetHashCode()
 {
     return(HashCode.Combine(
                Filter.GetHashCode(),
                AddressU.GetHashCode(),
                AddressV.GetHashCode(),
                AddressW.GetHashCode(),
                MaxAnisotropy.GetHashCode(),
                MipLodBias.GetHashCode(),
                MinLod.GetHashCode(),
                MaxLod.GetHashCode(),
                ComparisonFunction.GetHashCode(),
                BorderColor.GetHashCode()));
 }