diff --git a/Trolleybus/Trolleybus/MapWithSetTrolleybusGeneric.cs b/Trolleybus/Trolleybus/MapWithSetTrolleybusGeneric.cs index 9512a3f..5b289b9 100644 --- a/Trolleybus/Trolleybus/MapWithSetTrolleybusGeneric.cs +++ b/Trolleybus/Trolleybus/MapWithSetTrolleybusGeneric.cs @@ -8,7 +8,7 @@ using System.Drawing; namespace Trolleybus { internal class MapWithSetTrolleybusGeneric - where T : class, IDrawningObject + where T : class, IDrawningObject, IEquatable where U : AbstractMap { /// diff --git a/Trolleybus/Trolleybus/SetTrolleybusGeneric.cs b/Trolleybus/Trolleybus/SetTrolleybusGeneric.cs index 098b1be..4583421 100644 --- a/Trolleybus/Trolleybus/SetTrolleybusGeneric.cs +++ b/Trolleybus/Trolleybus/SetTrolleybusGeneric.cs @@ -8,7 +8,7 @@ namespace Trolleybus { // Параметризованный набор объектов internal class SetTrolleybusGeneric - where T : class + where T : class, IEquatable { // Массив объектов, которые храним private readonly List _places;