Click or drag to resize
CollectionExtensionsTakeBetweenT Method (IEnumerableT, T, T)
Returns elements from a sequence as long as they are between the two items.

Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.ScheduleView (in Telerik.Windows.Controls.ScheduleView.dll) Version: 2017.3.913.40 (2017.3.913.40)
Syntax
public static IEnumerable<T> TakeBetween<T>(
	this IEnumerable<T> target,
	T item1,
	T item2
)

Parameters

target
Type: System.Collections.GenericIEnumerableT
A sequence to return elements from.
item1
Type: T
The first item.
item2
Type: T
The second item.

Type Parameters

T
The type of the elements.

Return Value

Type: IEnumerableT
An System.Collections.Generic.IEnumerable(T) that contains the elements between the two items including.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableT. 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