ImmutableArray<T>.Builder.ItemRef(Int32) 方法

定义

获取对指定索引处的元素的只读引用。Gets a read-only reference to the element at the specified index.

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 item index.

返回

T

对指定索引处的元素的只读引用。The read-only reference to the element at the specified index.

例外

index 大于或等于数组计数。index is greater or equal to the array count.

适用于