Merge branch 'LabWork06' into LabWork07
This commit is contained in:
commit
9b8c08ddbe
@ -26,7 +26,14 @@ public class MassiveGenericObjects<T> : ICollectionGenericObjects<T>
|
||||
{
|
||||
if (value > 0)
|
||||
{
|
||||
_collection = new T?[value];
|
||||
if (_collection.Length > 0)
|
||||
{
|
||||
Array.Resize(ref _collection, value);
|
||||
}
|
||||
else
|
||||
{
|
||||
_collection = new T?[value];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user