MemoryExtensions.Reverse(Span<T>) MemoryExtensions.Reverse(Span<T>) MemoryExtensions.Reverse(Span<T>) MemoryExtensions.Reverse(Span<T>) Method

定义

反转整个跨度中元素的序列。Reverses the sequence of the elements in the entire span.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static void Reverse(Span<T> span);
public static void Reverse<T> (this Span<T> span);
static member Reverse : Span<'T> -> unit
<Extension()>
Public Sub Reverse(Of T) (span As Span(Of T))

类型参数

T

范围中元素的类型。The type of elements in the span.

参数

span
Span<T> Span<T> Span<T> Span<T>

要反转的跨度。The span to reverse.

适用于