ImmutableArray<T>.ItemRef(Int32) 方法

定义

获取对位于只读列表中指定 index 处的元素的只读索引。Gets a read-only reference to the element at the specified index in the read-only list.

public:
 T& ^ ItemRef(int index);
public ref readonly T ItemRef (int index);
member this.ItemRef : int -> 'T
Public Function ItemRef (index As Integer) As T

参数

index
Int32

要获取其引用的元素的从零开始的索引。The zero-based index of the element to get a reference to.

返回

T

对位于只读列表中指定 index 处的元素的只读索引。A read-only reference to the element at the specified index in the read-only list.

适用于