A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.microsoft.com/en-us/dotnet/api/system.memory-1.slice below:

Memory<T>.Slice Method (System) | Microsoft Learn

Memory<T>.Slice Method Definition Overloads Slice(Int32)

Forms a slice out of the current memory that begins at a specified index.

Slice(Int32, Int32)

Forms a slice out of the current memory starting at a specified index for a specified length.

Slice(Int32)
Source:
Memory.cs
Source:
Memory.cs
Source:
Memory.cs
Source:
Memory.cs

Forms a slice out of the current memory that begins at a specified index.

public:
 Memory<T> Slice(int start);
public Memory<T> Slice(int start);
member this.Slice : int -> Memory<'T>
Public Function Slice (start As Integer) As Memory(Of T)
Parameters
start
Int32

The index at which to begin the slice.

Returns

An object that contains all elements of the current instance from start to the end of the instance.

Exceptions

start is less than zero or greater than Length.

Slice(Int32, Int32)
Source:
Memory.cs
Source:
Memory.cs
Source:
Memory.cs
Source:
Memory.cs

Forms a slice out of the current memory starting at a specified index for a specified length.

public:
 Memory<T> Slice(int start, int length);
public Memory<T> Slice(int start, int length);
member this.Slice : int * int -> Memory<'T>
Public Function Slice (start As Integer, length As Integer) As Memory(Of T)
Parameters
start
Int32

The index at which to begin the slice.

length
Int32

The number of elements to include in the slice.

Returns

An object that contains length elements from the current instance starting at start.

Exceptions

start is less than zero or greater than Length.

-or-

length is greater than Length - start

Collaborate with us on GitHub

The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide. In this article

Was this page helpful?


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4