Stack<T>

A last-in, first-out collection where the newest value is removed first.

What is Stack<T> in C#?

Stack<T> — A last-in, first-out collection where the newest value is removed first.

class BrowserHistory
{
    Stack<string> pages = new();
}

Level: Freelancer · More C# terms at this level

Updated