[This is preliminary documentation and is subject to change.]

Makes a slice of the specified list in between the start and end indexes, getting every so many items based upon the step.

Namespace:  Facebook.Json.Utilities
Assembly:  Facebook (in Facebook.dll) Version: 0.2009.3.23 (0.2009.3.23)

Syntax

C#
public static IList<T> Slice<T>(
	IList<T> list,
	Nullable<int> start,
	Nullable<int> end,
	Nullable<int> step
)
Visual Basic (Declaration)
Public Shared Function Slice(Of T) ( _
	list As IList(Of T), _
	start As Nullable(Of Integer), _
	end As Nullable(Of Integer), _
	step As Nullable(Of Integer) _
) As IList(Of T)
Visual C++
public:
generic<typename T>
static IList<T>^ Slice(
	IList<T>^ list, 
	Nullable<int> start, 
	Nullable<int> end, 
	Nullable<int> step
)

Parameters

list
Type: System.Collections.Generic..::.IList<(Of <(T>)>)
The list.
start
Type: System..::.Nullable<(Of <(Int32>)>)
The start index.
end
Type: System..::.Nullable<(Of <(Int32>)>)
The end index.
step
Type: System..::.Nullable<(Of <(Int32>)>)
The step.

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "M:Facebook.Json.Utilities.CollectionUtils.Slice``1(System.Collections.Generic.IList{``0},System.Nullable{System.Int32},System.Nullable{System.Int32},System.Nullable{System.Int32})"]

Return Value

A slice of the list.

See Also

CollectionUtils Class
Slice Overload
Facebook.Json.Utilities Namespace