все, лаба полностью сдана

This commit is contained in:
MorozovDanil 2024-04-15 13:47:05 +04:00
parent 6699ba3e92
commit 2174798ffb
2 changed files with 3 additions and 1 deletions

View File

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

View File

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