ImmutableList<T>.ItemRef(Int32) 方法
定义
获取对给定 index 处的集元素的只读引用。Gets a read-only reference to the element of the set at the given 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 0-based index of the element in the set to return.
返回
- T
对给定位置处的元素的只读引用。A read-only reference to the element at the given position.