Declaration
public static IQueryable<Tuple<T, T>> ConsecutivePairs<T>(
    this IQueryable<T> source,
    bool closed
)Summary
                Returns an enumeration of tuples containing all consecutive pairs of the elements.
Generic type parameters
| T | This type parameter is not documented. | 
Parameters
| this IQueryable<T> | source | 
                The input enumerable. | 
| bool | closed | 
                If true, an additional pair containing the last and first element is included. For example, if the source
                collection contains { 1, 2, 3, 4 } then the enumeration contains { (1, 2), (2, 3), (3, 4) } if closed is false, and { (1, 2), (2, 3), (3, 4), (4, 1) } if closed is true. | 
Remarks
                Warning: This method does not work with IQToolkit.