public virtual int _GetUniqueIdentifier() { var hashCode = 399326290; hashCode = hashCode * -1521134295 + (Id?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (LicensePlate?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (ContainerId?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (ShipId?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (TrainId?.GetHashCode() ?? 0); return(hashCode); }
public override int GetHashCode() { return(TrainId.GetHashCode() + BagId.GetHashCode() + BucketId.GetHashCode()); }