25. C# – Queue
31.4K views on YouTube
The #Queue #collection is the opposite of the Stack collection. It stores elements in #FIFO (First In First Out) Style.
We can use the Enqueue() method to add values and the Dequeue() method to retrieve the values from the Queue.
The Peek() method returns but does not remove the topmost element.
Calling the Dequeue() & Peek() on an empty queue throws an exception.
Check out more: reslug.com/@etrupja
#csharp #dotnet #dotnetcore #vs2017 #learn #programming #development #webdev #web #dev