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.4K+ articles
DSA
22.8K+ articles
Python
21.3K+ articles
Experiences
16.6K+ articles
C#
1.9K+ articles
CSharp-method
701+ articles
CSharp-Collections-Namespace
196+ articles
CSharp-Collections
5+ articles
CSharp-Queue-Class
3+ articles
CSharp-Deque
2+ articles
CSharp-Collections-Queue
16 posts
Recent Articles
Popular Articles
Deque in C#
Last Updated: 19 March 2025
C# Deque means double-ended queue. It is a linear data structure that allows us to add or remove elements from both the front and the end. A deque is more flexible than th...
read more
C#
CSharp-Collections
CSharp-Collections-Queue
CSharp-Deque
C# Queue with Examples
Last Updated: 31 January 2025
A Queue in C# is a collection that follows the First-In-First-Out (FIFO) principle which means elements are processed in the same order they are added. It is a part of the...
read more
C#
CSharp-Collections-Queue
How to get Synchronize access to the Queue in C#
Last Updated: 18 February 2019
Queue.SyncRoot Property is used to get an object which can be used to synchronize access to the Queue. Queue represents a first-in, first out collection of object. It is u...
read more
C#
CSharp-Collections-Namespace
CSharp-Collections-Queue
How to create a Queue in C#
Last Updated: 18 February 2019
Queue() Constructor is used to initializes a new instance of the Queue class which will be empty, and will have the default initial capacity, and uses the default growth f...
read more
C#
CSharp-Collections-Namespace
CSharp-Collections-Queue
Queue.Equals() Method in C#
Last Updated: 28 January 2019
Equals(Object) Method which is inherited from the Object class is used to check if a specified Queue class object is equal to another Queue class object or not. This metho...
read more
C#
CSharp-method
CSharp-Collections-Namespace
CSharp-Collections-Queue
Queue.GetEnumerator Method in C#
Last Updated: 04 February 2019
This method returns an enumerator that iterates through the Queue. And it comes under the System.Collections namespace.Syntax:public virtual System.Collections.IEnumerator...
read more
C#
CSharp-method
CSharp-Collections-Namespace
CSharp-Collections-Queue
Queue.CopyTo() Method in C#
Last Updated: 04 February 2019
This 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 the Array in the sam...
read more
C#
CSharp-method
CSharp-Collections-Namespace
CSharp-Collections-Queue
Queue.IsSynchronized Property in C#
Last Updated: 04 February 2019
This property is used get a value which indicates whether access to the Queue is synchronized (thread safe) or not.Syntax:public virtual bool IsSynchronized { get; }Proper...
read more
C#
CSharp-Collections-Namespace
CSharp-Collections-Queue
Queue.Count Property in C#
Last Updated: 04 February 2019
This property is used to get the number of elements contained in the Queue. Retrieving the value of this property is an O(1) operation and it comes under the System.Collec...
read more
C#
CSharp-Collections-Namespace
CSharp-Collections-Queue
Queue.Enqueue() Method in C#
Last Updated: 13 April 2021
This method is used to add an object to the end of the Queue. This comes under the System.Collections namespace. The value can null and if the Count is less than the capac...
read more
C#
CSharp-method
CSharp-Collections-Namespace
CSharp-Collections-Queue
Queue.ToArray Method in C#
Last Updated: 04 February 2019
This method is used to copy the Queue elements to a new array. The Queue is not modified and the order of the elements in the new array is the same as the order of the ele...
read more
C#
CSharp-method
CSharp-Collections-Namespace
CSharp-Collections-Queue
Queue.Synchronized() Method in C#
Last Updated: 04 February 2019
This method is used to return a new Queue that wraps the original queue and is thread-safe. The wrapper returned by this method locks the queue before an operation is perf...
read more
C#
CSharp-method
CSharp-Collections-Namespace
CSharp-Collections-Queue
Queue.Peek Method in C#
Last Updated: 04 February 2019
This method returns the object at the beginning of the Queue without removing it. This method is similar to the Dequeue method, but Peek does not modify the Queue and is a...
read more
C#
CSharp-method
CSharp-Collections-Namespace
CSharp-Collections-Queue
Queue.Clear Method in C#
Last Updated: 04 February 2019
This method is used to remove the objects from the Queue. This method is an O(n) operation, where n is the total count of elements. And this method comes under System.Coll...
read more
C#
CSharp-method
CSharp-Collections-Namespace
CSharp-Collections-Queue
Queue.Contains() Method in C#
Last Updated: 05 February 2021
This method is used to check whether an element is in the Queue. This method performs a linear search, therefore, this method is an O(n) operation, where n is Count. And t...
read more
C#
CSharp-method
CSharp-Collections-Namespace
CSharp-Collections-Queue
1
2
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 !