MoreLinq
Split<(Of <(<'TSource>)>)> Method (source, separator, comparer, count)
NamespacesMoreLinqMoreEnumerableSplit<(Of <<'(TSource>)>>)(IEnumerable<(Of <<'(TSource>)>>), TSource, IEqualityComparer<(Of <<'(TSource>)>>), Int32)
Splits the source sequence by a separator, given a maximum count of splits. A parameter specifies how the separator is compared for equality.
Declaration Syntax
C#Visual BasicVisual C++
public static IEnumerable<IEnumerable<TSource>> Split<TSource>(
	this IEnumerable<TSource> source,
	TSource separator,
	IEqualityComparer<TSource> comparer,
	int count
)
<ExtensionAttribute> _
Public Shared Function Split(Of TSource) ( _
	source As IEnumerable(Of TSource), _
	separator As TSource, _
	comparer As IEqualityComparer(Of TSource), _
	count As Integer _
) As IEnumerable(Of IEnumerable(Of TSource))
public:
[ExtensionAttribute]
generic<typename TSource>
static IEnumerable<IEnumerable<TSource>^>^ Split(
	IEnumerable<TSource>^ source, 
	TSource separator, 
	IEqualityComparer<TSource>^ comparer, 
	int count
)
Generic Template Parameters
TSource

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

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

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

separator (TSource)

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

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

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

count (Int32)

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

Return Value

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

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)