/[xmltv_parser]/trunk/libxmltv/Extensions.cs
ViewVC logotype

Diff of /trunk/libxmltv/Extensions.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- 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 @@
                 "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 @@
                     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)

 

  ViewVC Help
Powered by ViewVC 1.1.22