Declaration
public static IEnumerable<string> Split(
this string str,
int chunkSize
)
Summary
Splits a string into chunks of equal size. The last chunk may be smaller than
chunkSize,
but all chunks, if any, will contain at least 1 character.
Parameters
this string | str |
String to split into chunks. |
int | chunkSize |
Size of each chunk. Must be greater than zero. |
Returns
A lazy-evaluated collection containing the chunks from the string.