ReadOnlySlice<T>.

Take(int) Method

Summary

Returns a specified number of contiguous elements from the start of the slice.
Namespace
Avalonia.Utilities
Containing Type
ReadOnlySlice<T>

Syntax

public ReadOnlySlice<T> Take(int length)

Parameters

Name Type Description
length int The number of elements to return.

Return Value

Type Description
ReadOnlySlice<T> A ReadOnlySlice<T> that contains the specified number of elements from the start of this slice.