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

# Line 38 | Line 38 | namespace libxmltv
38                  "The chunkSize parameter must be a positive value.");
39  
40              // Call the internal implementation.
41 <            return source.ChunkInternal(chunkSize);
41 >            return source.ChunkInternal(chunkSize).ToList();
42          }
43          private static IEnumerable<IEnumerable<T>> ChunkInternal<T>(this IEnumerable<T> source, int chunkSize)
44          {
# Line 55 | Line 55 | namespace libxmltv
55                      if (!enumerator.MoveNext()) yield break;
56  
57                      // Return the chunked sequence.
58 <                    yield return ChunkSequence(enumerator, chunkSize);
58 >                    yield return ChunkSequence(enumerator, chunkSize).ToList();
59                  } while (true);
60          }
61          private static IEnumerable<T> ChunkSequence<T>(IEnumerator<T> enumerator, int chunkSize)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines