Sequence AsSequence T  Method A Sandcastle Documented Class Library
Creates a sequence from a given enumerable.

Namespace: Sequences
Assembly: Sequences (in Sequences.dll) Version: 1.0.1.0 (1.0.1)
Syntax
public static ISequence<T> AsSequence<T>(
	this IEnumerable<T> enumerable
)

Parameters

enumerable
Type: System.Collections.Generic IEnumerable T 
The enumerable to be evaluated.
Type Parameters
T
The type of elements in the sequence.

Return Value

Type: ISequence T 
A sequence created by lazily-evaluating enumerable.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable T . When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also