[ObsoleteAttribute("Use Window instead.")]
public static IEnumerable<IEnumerable<TSource>> Windowed<TSource>(
this IEnumerable<TSource> source,
int size
)
<ExtensionAttribute>
<ObsoleteAttribute("Use Window instead.")>
Public Shared Function Windowed(Of TSource) (
source As IEnumerable(Of TSource),
size As Integer
) As IEnumerable(Of IEnumerable(Of TSource))
public:
[ExtensionAttribute]
[ObsoleteAttribute(L"Use Window instead.")]
generic<typename TSource>
static IEnumerable<IEnumerable<TSource>^>^ Windowed(
IEnumerable<TSource>^ source,
int size
)
[<ExtensionAttribute>]
[<ObsoleteAttribute("Use Window instead.")>]
static member Windowed :
source : IEnumerable<'TSource> *
size : int -> IEnumerable<IEnumerable<'TSource>>
The number of sequences returned is: Max(0, sequence.Count() - windowSize) + 1
Returned sub-sequences are buffered, but the overall operation is streamed.