ImmutableList<T>.Reverse 方法

定义

重载

Reverse()

将整个不可变列表中元素的顺序反转。Reverses the order of the elements in the entire immutable list.

Reverse(Int32, Int32)

将不可变列表的指定范围中元素的顺序反转。Reverses the order of the elements in the specified range of the immutable list.

Reverse()

将整个不可变列表中元素的顺序反转。Reverses the order of the elements in the entire immutable list.

public:
 System::Collections::Immutable::ImmutableList<T> ^ Reverse();
public System.Collections.Immutable.ImmutableList<T> Reverse ();
member this.Reverse : unit -> System.Collections.Immutable.ImmutableList<'T>
Public Function Reverse () As ImmutableList(Of T)

返回

ImmutableList<T>

反向列表。The reversed list.

适用于

Reverse(Int32, Int32)

将不可变列表的指定范围中元素的顺序反转。Reverses the order of the elements in the specified range of the immutable list.

public:
 System::Collections::Immutable::ImmutableList<T> ^ Reverse(int index, int count);
public System.Collections.Immutable.ImmutableList<T> Reverse (int index, int count);
member this.Reverse : int * int -> System.Collections.Immutable.ImmutableList<'T>
Public Function Reverse (index As Integer, count As Integer) As ImmutableList(Of T)

参数

index
Int32

要反转的范围的从零开始的起始索引。The zero-based starting index of the range to reverse.

count
Int32

要反转的范围内的元素数。The number of elements in the range to reverse.

返回

ImmutableList<T>

反向列表。The reversed list.

适用于