コード例 #1
0
 public bool Equals(EnergyUnit other) =>
 string.Equals(Name, other.Name, StringComparison.Ordinal) &&
 string.Equals(Abbreviation, other.Abbreviation, StringComparison.Ordinal) &&
 ValueInJoules.Equals(other.ValueInJoules);
コード例 #2
0
 public bool IsEquivalentOf(EnergyUnit other) =>
 ValueInJoules.Equals(other.ValueInJoules);