Лабораторная работа №8 (небольшое изменение)

This commit is contained in:
DjonniStorm 2024-05-13 23:48:04 +04:00
parent 4be9343627
commit 17e422cc9a

View File

@ -9,11 +9,11 @@ public class DrawningTruckCompareByType : IComparer<DrawningTruck?>
{
if (x == null || x.EntityTruck == null)
{
return -1;
return 1;
}
if (y == null || y.EntityTruck == null)
{
return 1;
return -1;
}
if (x.GetType().Name != y.GetType().Name)
{