class · System

Stack<T>

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

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

Tipo
class
Espacio de nombres
System
Ensamblado
System.Core
Acceso
public
Archivo fuente
List.ant

Parámetros de tipo

NombreRestricciones
Tcualquier tipo

Herencia

Clases base
Any Stack<T>

Constructores

constructor Stack()
#

Propiedades

property Count: i32
#

read-only

property IsEmpty: bool
#

read-only

Métodos

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

Miembros privados e internos (3)

field items: T[]
#

private

field count: i32
#

private

method Grow() -> void
#

private

Miembros heredados (5)

Código fuente

Stack<T> en Larva HIR, descompilado a partir de su 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