This commit is contained in:
bulatova_karina 2023-12-02 21:44:38 +03:00
parent e92c303460
commit 766e7e00ab

View File

@ -15,7 +15,7 @@ namespace WarmlyShip.Generics
public SetGeneric(int count)
{
_maxCount = count;
_places = new List<T>(count);
_places = new List<T?>(count);
}
public bool Insert(T warmlyship)
{
@ -68,7 +68,7 @@ namespace WarmlyShip.Generics
return;
}
}
public IEnumerable<T?> GetShips(int? maxShips = null)
public IEnumerable<T> GetShips(int? maxShips = null)
{
for (int i = 0; i < _places.Count; ++i)
{