Example #1
0
 /// <inheritdoc />
 public override int GetHashCode()
 {
     unchecked
     {
         return((ReflectionAmount.GetHashCode() * 397) ^ (Colour != null ? Colour.GetHashCode() : 0));
     }
 }
Example #2
0
 protected bool Equals(Surface other) =>
 ReflectionAmount.Equals(other.ReflectionAmount) && Equals(Colour, other.Colour);