Click or drag to resize

Utils_LinqGetRangeT Method

Gets a range of values.

Namespace:  MicaSystems.Utils
Assembly:  MicaSystems.Utils (in MicaSystems.Utils.dll) Version: 1.0.0.0 (1.1.0.123)
Syntax
C#
public static List<T> GetRange<T>(
	this List<T> list,
	int startIndex,
	int length
)

Parameters

list
Type: System.Collections.GenericListT
An System.Collections.Generic.IEnumerable/T/ to return elements from.
startIndex
Type: SystemInt32
The start index.
length
Type: SystemInt32
The number of elements to return.

Type Parameters

T
The type of the elements of source.

Return Value

Type: ListT
ListT

Usage Note

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