ReadOnlySpan<T>.GetPinnableReference Método

Definição

Uma referência somente leitura a um objeto do tipo T que pode ser usada para anexação e é necessária para dar suporte ao uso do intervalo em uma instrução fixed.A read-only reference to an object of type T that can be used for pinning, and is required to support the use of span within a fixed statement.

public:
 T& ^ GetPinnableReference();
public ref readonly T GetPinnableReference ();
member this.GetPinnableReference : unit -> 'T
Public Function GetPinnableReference () As T

Retornos

T

Uma referência ao elemento do intervalo no índice 0 ou null se o intervalo estiver vazio.A reference to the element of the span at index 0, or null if the span is empty.

Aplica-se a