Пример #1
0
 public bool Equals(SpeedUnit other) =>
 string.Equals(Name, other.Name, StringComparison.Ordinal) &&
 string.Equals(Abbreviation, other.Abbreviation, StringComparison.Ordinal) &&
 ValueInMetresPerSecond.Equals(other.ValueInMetresPerSecond);
Пример #2
0
 public bool IsEquivalentOf(SpeedUnit other) =>
 ValueInMetresPerSecond.Equals(other.ValueInMetresPerSecond);