Creates a sequence from a given enumerable.
Namespace: SequencesAssembly: Sequences (in Sequences.dll) Version: 1.0.1.0 (1.0.1)
Syntax public static ISequence<T> AsSequence<T>(
this IEnumerable<T> enumerable
)
public static ISequence<T> AsSequence<T>(
this IEnumerable<T> enumerable
)
<ExtensionAttribute>
Public Shared Function AsSequence(Of T) (
enumerable As IEnumerable(Of T)
) As ISequence(Of T)
<ExtensionAttribute>
Public Shared Function AsSequence(Of T) (
enumerable As IEnumerable(Of T)
) As ISequence(Of T)
public:
[ExtensionAttribute]
generic<typename T>
static ISequence<T>^ AsSequence(
IEnumerable<T>^ enumerable
)
public:
[ExtensionAttribute]
generic<typename T>
static ISequence<T>^ AsSequence(
IEnumerable<T>^ enumerable
)
static member AsSequence :
enumerable : IEnumerable<'T> -> ISequence<'T>
static member AsSequence :
enumerable : IEnumerable<'T> -> ISequence<'T>
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