end
This commit is contained in:
parent
158ee34849
commit
36d6171669
@ -34,7 +34,7 @@ public class ListGenericObjects<T> : ICollectionGenericObjects<T>
|
||||
{
|
||||
if (value > 0)
|
||||
{
|
||||
_maxCount = value - 1;
|
||||
_maxCount = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -26,12 +26,12 @@ public class MassiveGenericObjects<T> : ICollectionGenericObjects<T>
|
||||
if (value > 0)
|
||||
{
|
||||
if (_collection.Length > 0)
|
||||
{
|
||||
{s
|
||||
Array.Resize(ref _collection, value);
|
||||
}
|
||||
else
|
||||
{
|
||||
_collection = new T?[value - 1];
|
||||
_collection = new T?[value ];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user