Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.5K+ articles
DSA
22.8K+ articles
Python
21.3K+ articles
Experiences
16.6K+ articles
Misc
8.8K+ articles
C#
1.9K+ articles
CSharp-method
701+ articles
Stack
436+ articles
CSharp-Collections-Namespace
196+ articles
CSharp-Generic-Namespace
140+ articles
CSharp-Generic-Stack
13 posts
Recent Articles
Popular Articles
Copying the Queue elements to 1-D Array in C#
Last Updated: 28 January 2019
QueueT.CopyTo(T[], Int32) Method is used to copy the Queue elements to an existing one-dimensional Array, starting at the specified array index. The elements are copied to...
read more
C#
CSharp-method
CSharp-Generic-Stack
CSharp-Generic-Namespace
Removing the object from the top of the Stack in C#
Last Updated: 28 January 2019
StackT.Pop Method is used to remove and returns the object at the top of the StackT. This method comes under the System.Collections.Generic namespace.Syntax:public T Pop ...
read more
C#
CSharp-method
CSharp-Generic-Stack
CSharp-Generic-Namespace
Getting an enumerator that iterates through the Stack in C#
Last Updated: 28 January 2019
StackT.GetEnumerator Method is used to get an IEnumerator that iterates through the Stack. And it comes under the System.Collections.Generic namespace.Syntax:public System...
read more
C#
CSharp-method
CSharp-Generic-Stack
CSharp-Generic-Namespace
C# | Stack<T>.TrimExcess Method with Examples
Last Updated: 01 February 2019
Stack represents a last-in, first out collection of object. It is used when you need a last-in, first-out access to items. When you add an item in the list, it is called p...
read more
C#
CSharp-method
CSharp-Generic-Stack
CSharp-Generic-Namespace
C# | Copy the Stack to an Array
Last Updated: 01 February 2019
StackT.CopyTo(T[], Int32) Method is used to copy the StackT to an existing 1-D Array which starts from the specified array index.Properties: The capacity of a StackTis ...
read more
C#
CSharp-method
CSharp-Generic-Stack
CSharp-Generic-Namespace
C# | Insert an object at the top of the Stack - Push Operation
Last Updated: 01 February 2019
Stack represents a last-in, first out collection of object. It is used when you need a last-in, first-out access of items. When you add an item in the list, it is called p...
read more
C#
CSharp-method
CSharp-Generic-Stack
CSharp-Generic-Namespace
C# | Convert Stack to array
Last Updated: 01 February 2019
Stack represents a last-in, first out collection of object. It is used when you need a last-in, first-out access of items. When you add an item in the list, it is called p...
read more
C#
CSharp-method
CSharp-Generic-Stack
CSharp-Generic-Namespace
C# | Create a Stack from a collection
Last Updated: 01 February 2019
Stack represents a last-in, first out collection of object. It is used when you need a last-in, first-out access to items. When you add an item in the list, it is called p...
read more
C#
CSharp-method
CSharp-Generic-Stack
CSharp-Collections-Namespace
CSharp-Generic-Namespace
C# | Get the number of elements contained in the Stack
Last Updated: 01 February 2019
Stack represents a last-in, first out collection of object. StackT.Count Property is used to gets the number of elements contained in the Stack. Retrieving the value of t...
read more
C#
CSharp-Generic-Stack
CSharp-Collections-Namespace
CSharp-Generic-Namespace
C# | Check if a Stack contains an element
Last Updated: 01 February 2019
Stack represents a last-in, first out collection of object. StackT.Contains(Object) Method is used to check whether an element is in the StackT or not.Syntax:public virtu...
read more
C#
CSharp-method
CSharp-Generic-Stack
CSharp-Collections-Namespace
CSharp-Generic-Namespace
C# | Remove all objects from the Stack
Last Updated: 07 December 2018
Stack represents a last-in, first out collection of object. It is used when you need a last-in, first-out access to items. When you add an item in the list, it is called p...
read more
C#
CSharp-method
CSharp-Generic-Stack
CSharp-Collections-Namespace
CSharp-Generic-Namespace
C# | Get object at the top of the Stack - Peek operation
Last Updated: 01 February 2019
Stack represents a last-in, first out collection of object. It is used when you need a last-in, first-out access to items. When you add an item in the list, it is called p...
read more
C#
CSharp-method
CSharp-Generic-Stack
CSharp-Collections-Namespace
CSharp-Generic-Namespace
Implementing Stack in C#
Last Updated: 30 October 2018
Stack is a linear data structure. It follows LIFO(Last In First Out) pattern for Input/output. Following three basic operations are performed in the stack:Push: Adds an it...
read more
Stack
C#
CSharp-Generic-Stack
CSharp-Generic-Namespace
DSA
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !