Concatenates all sequences in the source collection into a single flattened sequence.
Namespace: SequencesAssembly: Sequences (in Sequences.dll) Version: 1.0.1.0 (1.0.1)
Syntax public static ISequence<TSource> Flatten<TSource>(
this IEnumerable<ISequence<TSource>> source
)
public static ISequence<TSource> Flatten<TSource>(
this IEnumerable<ISequence<TSource>> source
)
<ExtensionAttribute>
Public Shared Function Flatten(Of TSource) (
source As IEnumerable(Of ISequence(Of TSource))
) As ISequence(Of TSource)
<ExtensionAttribute>
Public Shared Function Flatten(Of TSource) (
source As IEnumerable(Of ISequence(Of TSource))
) As ISequence(Of TSource)
public:
[ExtensionAttribute]
generic<typename TSource>
static ISequence<TSource>^ Flatten(
IEnumerable<ISequence<TSource>^>^ source
)
public:
[ExtensionAttribute]
generic<typename TSource>
static ISequence<TSource>^ Flatten(
IEnumerable<ISequence<TSource>^>^ source
)
static member Flatten :
source : IEnumerable<ISequence<'TSource>> -> ISequence<'TSource>
static member Flatten :
source : IEnumerable<ISequence<'TSource>> -> ISequence<'TSource>
Parameters
- source
- Type: System.Collections.Generic IEnumerable ISequence TSource
The collection to be flattened.
Type Parameters - TSource
- The type of the elements of the resulting sequence.
Return Value
Type:
ISequence TSource A flattened sequence obtained by concatenating all sequences in the
source collection.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IEnumerable ISequence TSource . 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