Лабораторная работа №8 (небольшое изменение)
This commit is contained in:
parent
4be9343627
commit
17e422cc9a
@ -9,11 +9,11 @@ public class DrawningTruckCompareByType : IComparer<DrawningTruck?>
|
|||||||
{
|
{
|
||||||
if (x == null || x.EntityTruck == null)
|
if (x == null || x.EntityTruck == null)
|
||||||
{
|
{
|
||||||
return -1;
|
return 1;
|
||||||
}
|
}
|
||||||
if (y == null || y.EntityTruck == null)
|
if (y == null || y.EntityTruck == null)
|
||||||
{
|
{
|
||||||
return 1;
|
return -1;
|
||||||
}
|
}
|
||||||
if (x.GetType().Name != y.GetType().Name)
|
if (x.GetType().Name != y.GetType().Name)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user