доделаю
This commit is contained in:
parent
5c08bba55b
commit
051ef5f863
@ -31,7 +31,7 @@ namespace HoistingCrane.CollectionGenericObjects
|
||||
return null;
|
||||
}
|
||||
|
||||
public bool Insert(T obj)
|
||||
public T? Insert(T obj)
|
||||
{
|
||||
for(int i = 0; i < Count; i++)
|
||||
{
|
||||
@ -43,7 +43,7 @@ namespace HoistingCrane.CollectionGenericObjects
|
||||
return false;
|
||||
}
|
||||
|
||||
public bool Insert(T obj, int position)
|
||||
public T? Insert(T obj, int position)
|
||||
{
|
||||
// Проверка позиции
|
||||
if (position < Count && position >= 0)
|
||||
@ -81,7 +81,7 @@ namespace HoistingCrane.CollectionGenericObjects
|
||||
return false;
|
||||
}
|
||||
|
||||
public bool Remove(int position)
|
||||
public T? Remove(int position)
|
||||
{
|
||||
if(position < 0 || position >= arr.Length || arr[position] == null)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user