/// <summary> /// Porównywarka /// </summary> /// <param name="other"></param> /// <returns></returns> public bool Equals(Refueling other) { return(RefueledCar.Equals(other.RefueledCar) && CreateTime.Equals(other.CreateTime)); }
/// <summary> /// Kod mieszania /// </summary> /// <returns></returns> public override int GetHashCode() { return(RefueledCar != null?RefueledCar.GetHashCode() ^ CreateTime.GetHashCode() : 0); }