MoreLinq
Split<(Of <(<'TSource, TResult>)>)> Method (source, separator, comparer, count, resultSelector)
NamespacesMoreLinqMoreEnumerableSplit<(Of <<'(TSource, TResult>)>>)(IEnumerable<(Of <<'(TSource>)>>), TSource, IEqualityComparer<(Of <<'(TSource>)>>), Int32, Func<(Of <<'(IEnumerable<(Of <<'(TSource>)>>), TResult>)>>))
Splits the source sequence by a separator, given a maximum count of splits, and then transforms the splits into results. A parameter specifies how the separator is compared for equality.
Declaration Syntax
C#Visual BasicVisual C++
public static IEnumerable<TResult> Split<TSource, TResult>(
	this IEnumerable<TSource> source,
	TSource separator,
	IEqualityComparer<TSource> comparer,
	int count,
	Func<IEnumerable<TSource>, TResult> resultSelector
)
<ExtensionAttribute> _
Public Shared Function Split(Of TSource, TResult) ( _
	source As IEnumerable(Of TSource), _
	separator As TSource, _
	comparer As IEqualityComparer(Of TSource), _
	count As Integer, _
	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, 
	IEqualityComparer<TSource>^ comparer, 
	int count, 
	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.Collections.Generic.IEqualityComparer{``0},System.Int32,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.Collections.Generic.IEqualityComparer{``0},System.Int32,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.Collections.Generic.IEqualityComparer{``0},System.Int32,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.Collections.Generic.IEqualityComparer{``0},System.Int32,System.Func{System.Collections.Generic.IEnumerable{``0},``1})"]

comparer (IEqualityComparer<(Of <(<'TSource>)>)>)

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

count (Int32)

[Missing <param name="count"/> documentation for "M:MoreLinq.MoreEnumerable.Split``2(System.Collections.Generic.IEnumerable{``0},``0,System.Collections.Generic.IEqualityComparer{``0},System.Int32,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.Collections.Generic.IEqualityComparer{``0},System.Int32,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.Collections.Generic.IEqualityComparer{``0},System.Int32,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)