RecyclableList.AddRange fix to skip empty sources.
This commit is contained in:
1 parent
8242247436
commit
81f2c6d137
1 file changed
+5
@@ -263,6 +263,11 @@ namespace Recyclable.Collections
|
||||
[MethodImpl(MethodImplOptions.NoInlining | MethodImplOptions.AggressiveOptimization)]
|
||||
public void AddRange(RecyclableLongList<T> items)
|
||||
{
|
||||
if (items._longCount == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var sourceItemsCount = items.LongCount;
|
||||
if (sourceItemsCount > int.MaxValue)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user