Skip to content

P_Cyjb_Collections_ListStack_1_Item

CYJB edited this page Mar 20, 2024 · 7 revisions

ListStack(T).Item 属性 (Index)

获取或设置堆栈距离栈顶指定偏移处的元素。

Namespace: Cyjb.Collections
Assembly: Cyjb (in Cyjb.dll) Version: 1.0.23+7750dd8e971297c5fa962a3bee37fb78f72793f6

语法

C#

public T this[
	Index offset
] { get; set; }

参数

 

offset
Type: System.Index
要获取的元素距离栈顶从零开始的偏移。

属性值

Type: T
指定偏移处的元素。

Exceptions

 

异常 条件
ArgumentOutOfRangeException offset 不是 ListStack(T) 中的有效偏移。

参见

Reference

ListStack(T) 类
Item 重载
Cyjb.Collections 命名空间

Clone this wiki locally