Skip to content

Commit 956ba10

Browse files
committed
Refactor Chunk method visibility and clean up preprocessor directives
1 parent e285bc4 commit 956ba10

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/Kook.Net.Core/Extensions/CollectionExtensions.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public IReadOnlyCollection<TValue> ToReadOnlyCollection<TSource>(IReadOnlyCollec
3737
public IReadOnlyCollection<TValue> ToReadOnlyCollection(Func<int> countFunc) =>
3838
new CollectionWrapper<TValue>(query, countFunc);
3939

40+
#if NETSTANDARD || NETFRAMEWORK
4041
public IEnumerable<TValue[]> Chunk(int size)
4142
{
4243
if (query is null)
@@ -103,10 +104,8 @@ static IEnumerable<TValue[]> ChunkIterator(IEnumerable<TValue> source, int size)
103104
}
104105
}
105106
}
106-
}
107-
108-
#if NETSTANDARD || NETFRAMEWORK
109107
#endif
108+
}
110109
}
111110

112111
[DebuggerDisplay("{DebuggerDisplay,nq}")]

0 commit comments

Comments
 (0)