Beispiel #1
0
 /// <summary>
 /// Compares a <see cref="Truck"/> with this one, and returns whether
 /// or not the Id and UnitNames match
 /// </summary>
 /// <param name="other"></param>
 /// <returns></returns>
 public bool IsDuplicateOf(Truck other)
 {
     return(Id == other.Id && UnitName.Equals(other.UnitName, StringComparison.InvariantCultureIgnoreCase));
 }
Beispiel #2
0
 public bool Equals(InversedKelvinTemperatureUnit other)
 {
     return(UnitName.Equals(other.UnitName));
 }