ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/xmltv_parser/trunk/libxmltv/Extensions.cs
(Generate patch)

Comparing trunk/libxmltv/Extensions.cs (file contents):
Revision 197 by william, Sat Mar 16 22:02:01 2013 UTC vs.
Revision 198 by william, Sat Mar 16 22:25:41 2013 UTC

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