Table of Contents

Class StackWithLinkedList<T>

Namespace
AlgorithmsSW.Stack
Assembly
AlgorithmsSW.dll
[AlgorithmReference(1, 2)]
public sealed class StackWithLinkedList<T> : IStack<T>, IEnumerable<T>, IEnumerable

Type Parameters

T
Inheritance
StackWithLinkedList<T>
Implements
Inherited Members
Extension Methods

Properties

Count

public int Count { get; }

Property Value

int

IsEmpty

public bool IsEmpty { get; }

Property Value

bool

Peek

public T Peek { get; }

Property Value

T

Methods

Clear()

public void Clear()

GetEnumerator()

Returns an enumerator that iterates through the collection.

public IEnumerator<T> GetEnumerator()

Returns

IEnumerator<T>

An enumerator that can be used to iterate through the collection.

Pop()

public T Pop()

Returns

T

Push(T)

public void Push(T item)

Parameters

item T