CircularListTSlice(Int32, Int32) Method

Gets a new CircularListT instance, which represents a subsection of the current instance with the specified start index and count.

Definition

Namespace: KGySoft.Collections
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.5.0
C#
public CircularList<T> Slice(
	int index,
	int count
)

Parameters

index  Int32
The zero-based index at which the range starts.
count  Int32
The number of elements in the range.

Return Value

CircularListT
A shallow copy of a range of elements in the source CircularListT.

Remarks

This method provides the same result as the GetRange method. It exists for compatibility with ListT in .NET 8 and above.

See Also