mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-22 19:18:46 +00:00
Fix CA1829 on internal array
https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1829
This commit is contained in:
parent
95fda962ed
commit
c584b9c331
@ -36,7 +36,7 @@ namespace X10D.EnumerableExtensions
|
||||
public static IEnumerable<IEnumerable<T>> Split<T>(this IEnumerable<T> value, int chunkSize)
|
||||
{
|
||||
var enumerable = value.ToArray();
|
||||
var count = enumerable.LongCount();
|
||||
var count = enumerable.LongLength;
|
||||
chunkSize = chunkSize.Clamp(1, enumerable.Length);
|
||||
|
||||
for (var i = 0; i < (int)(count / chunkSize); i++)
|
||||
|
Loading…
Reference in New Issue
Block a user