Don't use Equals(object) on T?.

This commit is contained in:
Huo Yaoyuan
2019-12-03 20:07:22 +08:00
parent 8a6b2e681a
commit a42f9447e6
3 changed files with 4 additions and 3 deletions

View File

@ -79,8 +79,8 @@ namespace osu.Game.Screens.Select
public bool IsUpperInclusive;
public bool Equals(OptionalRange<T> other)
=> Min.Equals(other.Min)
&& Max.Equals(other.Max)
=> EqualityComparer<T?>.Default.Equals(Min, other.Min)
&& EqualityComparer<T?>.Default.Equals(Max, other.Max)
&& IsLowerInclusive.Equals(other.IsLowerInclusive)
&& IsUpperInclusive.Equals(other.IsUpperInclusive);
}