lab4
This commit is contained in:
parent
e92c303460
commit
766e7e00ab
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user