--- trunk/libxmltv/Extensions.cs 2013/03/16 22:02:01 197 +++ trunk/libxmltv/Extensions.cs 2013/03/16 22:25:41 198 @@ -38,7 +38,7 @@ namespace libxmltv "The chunkSize parameter must be a positive value."); // Call the internal implementation. - return source.ChunkInternal(chunkSize); + return source.ChunkInternal(chunkSize).ToList(); } private static IEnumerable<IEnumerable<T>> ChunkInternal<T>(this IEnumerable<T> source, int chunkSize) { @@ -55,7 +55,7 @@ namespace libxmltv if (!enumerator.MoveNext()) yield break; // Return the chunked sequence. - yield return ChunkSequence(enumerator, chunkSize); + yield return ChunkSequence(enumerator, chunkSize).ToList(); } while (true); } private static IEnumerable<T> ChunkSequence<T>(IEnumerator<T> enumerator, int chunkSize) |