class · System

Stack<T>

public class System.Stack<T> : System.Any

Last in, first out: Push and Pop at the top.

Kind
class
Namespace
System
Assembly
System.Core
Access
public
Source file
List.ant

Type parameters

NameConstraints
Tany type

Inheritance

Base classes
Any Stack<T>

Constructors

constructor Stack()
#

Properties

property Count: i32
#

read-only

property IsEmpty: bool
#

read-only

Methods

method Push(item: T) -> void
#
method Pop() -> T
#
method Peek() -> T
#
method Clear() -> void
#

Private and internal members (3)

field items: T[]
#

private

field count: i32
#

private

method Grow() -> void
#

private

Inherited members (5)

Source

Stack<T> as Larva HIR, decompiled from its Larva HIR.

System.Stack.hir
// Last in, first out: Push and Pop at the top.
public class System.Stack<T> : System.Any
{
    field items: T[]
    field count: i32
    method Grow() -> void
    constructor Stack()
    method Push(item: T) -> void
    method Pop() -> T
    method Peek() -> T
    method Clear() -> void
    property Count: i32
    property IsEmpty: bool
}
Esc