CircularListTSlice(Int32, Int32) Method
Gets a new
CircularListT instance, which represents a subsection of the current instance with the specified start
index and
count.
Namespace: KGySoft.CollectionsAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.5.0
public CircularList<T> Slice(
int index,
int count
)
Public Function Slice (
index As Integer,
count As Integer
) As CircularList(Of T)
public:
CircularList<T>^ Slice(
int index,
int count
)
member Slice :
index : int *
count : int -> CircularList<'T>
- index Int32
- The zero-based index at which the range starts.
- count Int32
- The number of elements in the range.
CircularListTA shallow copy of a range of elements in the source
CircularListT.
This method provides the same result as the GetRange method.
It exists for compatibility with ListT in .NET 8 and above.