Borschevskaya A.A. Lab Work 4 #4
@ -60,7 +60,7 @@ namespace ArmoredCar
|
||||
/// <returns></returns>
|
||||
public T Remove(int position)
|
||||
{
|
||||
if (position < 0 || position >= _maxCount)
|
||||
if (position < 0 || position >= Count)
|
||||
return null;
|
||||
T armoredCar = _places[position];
|
||||
_places.RemoveAt(position);
|
||||
@ -77,7 +77,7 @@ namespace ArmoredCar
|
||||
{
|
||||
get
|
||||
{
|
||||
if (position < 0 || position >= _maxCount)
|
||||
if (position < 0 || position >= Count)
|
||||
return null;
|
||||
return _places[position];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user