PIBD-12_Morozov_D.V. LabWork№4 #13

Closed
MorozovDanil wants to merge 15 commits from Lab4_base into Lab3_base
2 changed files with 3 additions and 1 deletions
Showing only changes of commit 2174798ffb - Show all commits

View File

@ -70,7 +70,7 @@ public class ListGenericObjects<T> : ICollectionGenericObjects<T>
public T Remove(int position)
{
if (position >= Count || position < 0) return null;
T obj = _collection[position];
T? obj = _collection[position];
_collection.RemoveAt(position);
return obj;
}

View File

@ -18,6 +18,7 @@ public class StorageCollection<T>
/// </summary>
readonly Dictionary<string, ICollectionGenericObjects<T>> _storages;
/// <summary>
/// Возвращение списка названий коллекций
/// </summary>
@ -31,6 +32,7 @@ public class StorageCollection<T>
_storages = new Dictionary<string, ICollectionGenericObjects<T>>();
}
/// <summary>
/// Добавление коллекции в хранилище
/// </summary>