/// <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)); }
public bool Equals(InversedKelvinTemperatureUnit other) { return(UnitName.Equals(other.UnitName)); }