MoreLinq
Split<(Of <(<'TSource, TResult>)>)> Method (source, separator, resultSelector)
NamespacesMoreLinqMoreEnumerableSplit<(Of <<'(TSource, TResult>)>>)(IEnumerable<(Of <<'(TSource>)>>), TSource, Func<(Of <<'(IEnumerable<(Of <<'(TSource>)>>), TResult>)>>))
Splits the source sequence by a separator and then transforms the splits into results.
Declaration Syntax
C#Visual BasicVisual C++
public static IEnumerable<TResult> Split<TSource, TResult>(
	this IEnumerable<TSource> source,
	TSource separator,
	Func<IEnumerable<TSource>, TResult> resultSelector
)
<ExtensionAttribute> _
Public Shared Function Split(Of TSource, TResult) ( _
	source As IEnumerable(Of TSource), _
	separator As TSource, _
	resultSelector As Func(Of IEnumerable(Of TSource), TResult) _
) As IEnumerable(Of TResult)
public:
[ExtensionAttribute]
generic<typename TSource, typename TResult>
static IEnumerable<TResult>^ Split(
	IEnumerable<TSource>^ source, 
	TSource separator, 
	Func<IEnumerable<TSource>^, TResult>^ resultSelector
)
Generic Template Parameters
TSource

[Missing <typeparam name="TSource"/> documentation for "M:MoreLinq.MoreEnumerable.Split``2(System.Collections.Generic.IEnumerable{``0},``0,System.Func{System.Collections.Generic.IEnumerable{``0},``1})"]

TResult

[Missing <typeparam name="TResult"/> documentation for "M:MoreLinq.MoreEnumerable.Split``2(System.Collections.Generic.IEnumerable{``0},``0,System.Func{System.Collections.Generic.IEnumerable{``0},``1})"]

Parameters
source (IEnumerable<(Of <(<'TSource>)>)>)

[Missing <param name="source"/> documentation for "M:MoreLinq.MoreEnumerable.Split``2(System.Collections.Generic.IEnumerable{``0},``0,System.Func{System.Collections.Generic.IEnumerable{``0},``1})"]

separator (TSource)

[Missing <param name="separator"/> documentation for "M:MoreLinq.MoreEnumerable.Split``2(System.Collections.Generic.IEnumerable{``0},``0,System.Func{System.Collections.Generic.IEnumerable{``0},``1})"]

resultSelector (Func<(Of <(<'IEnumerable<(Of <(<'TSource>)>)>, TResult>)>)>)

[Missing <param name="resultSelector"/> documentation for "M:MoreLinq.MoreEnumerable.Split``2(System.Collections.Generic.IEnumerable{``0},``0,System.Func{System.Collections.Generic.IEnumerable{``0},``1})"]

Return Value

[Missing <returns> documentation for "M:MoreLinq.MoreEnumerable.Split``2(System.Collections.Generic.IEnumerable{``0},``0,System.Func{System.Collections.Generic.IEnumerable{``0},``1})"]

Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable<(Of <(<'TSource>)>)>. When you use instance method syntax to call this method, omit the first parameter.

Assembly: MoreLinq (Module: MoreLinq.dll) Version: 1.0.16006.0 (1.0.16006.1845)