Methods_T_Cyjb_Collections_ListStack_1 - CYJB/Cyjb GitHub Wiki
The ListStack(T) generic type exposes the following members.
名称 | 说明 | |
---|---|---|
![]() |
Clear | 从当前集合中移除所有元素。 |
![]() |
Contains | 确定当前集合是否包含指定对象。 (重写 ReadOnlyCollectionBase(T).Contains(T).) |
![]() |
CopyTo | 从特定的 Array 索引处开始,将当前集合 的元素复制到一个 Array 中。 (重写 ReadOnlyCollectionBase(T).CopyTo(T[], Int32).) |
![]() |
EnsureCapacity | 确保堆栈至少具有指定容量。 |
![]() |
Equals | Determines whether the specified object is equal to the current object. (继承自 Object。) |
![]() |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (继承自 Object。) |
![]() |
GetEnumerator | 返回一个循环访问集合的枚举器。 (重写 ReadOnlyCollectionBase(T).GetEnumerator().) |
![]() |
GetHashCode | Serves as the default hash function. (继承自 Object。) |
![]() |
GetSyncRoot | 获取一个可用于同步对当前集合的访问的对象。 (继承自 ReadOnlyCollectionBase(T)。) |
![]() |
GetType | Gets the Type of the current instance. (继承自 Object。) |
![]() |
MemberwiseClone | Creates a shallow copy of the current Object. (继承自 Object。) |
![]() |
Peek | 返回堆栈顶部的元素,但不将其移除。 |
![]() |
Pop() | 删除并返回堆栈顶部的元素。 |
![]() |
Pop(Int32) | 删除堆栈顶部指定个数的元素。 |
![]() |
Push | 将指定元素推入堆栈的顶部。 |
![]() |
ToArray | 将堆栈的元素复制到新数组中。 |
![]() |
ToString | Returns a string that represents the current object. (继承自 Object。) |
![]() |
TrimExcess | 如果元素数小于当前容量的 90%,将容量设置为堆栈中的实际元素数。 |
![]() |
TryPeek | 尝试返回堆栈顶部的元素,但不将其移除。 |
![]() |
TryPop | 尝试删除并返回堆栈顶部的元素。 |
名称 | 说明 | |
---|---|---|
![]() |
IsDistinct(T) | 判断序列中是否不包含重复元素。 (由 EnumerableUtil 定义。) |