Concatenates all collections in the source sequence 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 ISequence<IEnumerable<TSource>> source
)
public static ISequence<TSource> Flatten<TSource>(
this ISequence<IEnumerable<TSource>> source
)
<ExtensionAttribute>
Public Shared Function Flatten(Of TSource) (
source As ISequence(Of IEnumerable(Of TSource))
) As ISequence(Of TSource)
<ExtensionAttribute>
Public Shared Function Flatten(Of TSource) (
source As ISequence(Of IEnumerable(Of TSource))
) As ISequence(Of TSource)
public:
[ExtensionAttribute]
generic<typename TSource>
static ISequence<TSource>^ Flatten(
ISequence<IEnumerable<TSource>^>^ source
)
public:
[ExtensionAttribute]
generic<typename TSource>
static ISequence<TSource>^ Flatten(
ISequence<IEnumerable<TSource>^>^ source
)
static member Flatten :
source : ISequence<IEnumerable<'TSource>> -> ISequence<'TSource>
static member Flatten :
source : ISequence<IEnumerable<'TSource>> -> ISequence<'TSource>
Parameters
- source
- Type: Sequences ISequence IEnumerable TSource
The sequence 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 collections in the
source sequence.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
ISequence IEnumerable 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