PIbd-23 Vrazhkin S.A. Work8 #8
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "lab8"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Зачтено с понижением балла(ов)
@ -0,0 +34,4 @@
{
EntityElectricLocomotiv EntityX = (EntityElectricLocomotiv)x.EntityLocomotiv;
EntityElectricLocomotiv EntityY = (EntityElectricLocomotiv)y.EntityLocomotiv;
if (EntityX.isBattery != EntityY.isBattery)
Нет сравнения по доп цвету
@ -0,0 +11,4 @@
}
public bool Equals(LocomotivCollectionInfo? other)
{
return Name == other.Name;
Нет проверки, что other не равен null
@ -0,0 +14,4 @@
{
return x.EntityLocomotiv.ColorBody.GetBrightness().CompareTo(y.EntityLocomotiv.ColorBody.GetBrightness());
}
if (x.GetType().Name != y.GetType().Name)
Требовалось сортировать по критериям: цвет, скорость, вес
Pull request closed