ImmutableSortedSet<T>.Builder.Item[Int32] 属性

定义

获取给定索引的集元素。Gets the element of the set at the given index.

public:
 property T default[int] { T get(int index); };
public T this[int index] { get; }
member this.Item(int) : 'T
Default Public ReadOnly Property Item(index As Integer) As T

参数

index
Int32

要返回集中的元素从零开始的索引。The 0-based index of the element in the set to return.

属性值

T

位于给定位置的元素。The element at the given position.

注解

不提供索引资源库,因为被替换的元素在已排序的集合中不能与替换元素进行排序。No index setter is offered because the element being replaced may not sort to the same position in the sorted collection as the replacing element.

适用于