Beispiel #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = 17;
         hash = hash * 23 + Src.GetHashCode();
         hash = hash * 23 + Dst.GetHashCode();
         hash = hash * 23 + Eq.GetHashCode();
         return(hash);
     }
 }
 /// <summary>
 /// Returns the hash code for this instance.
 /// </summary>
 /// <returns>A 32-bit signed integer that is the hash code for this instance.</returns>
 public override int GetHashCode()
 {
     return(HashHelper.Combine(
                BlendEnabled.GetHashCode(),
                SourceColorFactor.GetHashCode(),
                DestinationColorFactor.GetHashCode(),
                ColorFunction.GetHashCode(),
                SourceAlphaFactor.GetHashCode(),
                DestinationAlphaFactor.GetHashCode(),
                AlphaFunction.GetHashCode()));
 }
Beispiel #3
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = 17;
         hash = hash * 23 + Enabled.GetHashCode();
         hash = hash * 23 + ColourSource.GetHashCode();
         hash = hash * 23 + AlphaSource.GetHashCode();
         hash = hash * 23 + ColourDestination.GetHashCode();
         hash = hash * 23 + AlphaDestination.GetHashCode();
         hash = hash * 23 + ColourEquation.GetHashCode();
         hash = hash * 23 + AlphaEquation.GetHashCode();
         return(hash);
     }
 }
Beispiel #4
0
 public override int GetHashCode()
 {
     return(!Enabled ? 0 : SourceFactor.GetHashCode() ^ SourceAlphaFactor.GetHashCode() ^ DestinationFactor.GetHashCode() ^ DestinationAlphaFactor.GetHashCode() ^ Operation.GetHashCode() ^ AlphaOperation.GetHashCode());
 }