25. C# - Queue

preview_player
Показать описание
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.

===================================
You can also watch my courses on:
===================================

#csharp #dotnet #dotnetcore #vs2017 #learn #programming #development #webdev #web #dev
Рекомендации по теме
Комментарии
Автор

First In first Out! Thanks for this interesting video 😍👍🏼

weisssteinershow
Автор

Actually, understood something. Great!

fieryninja
Автор

Is it weird to experience ASMR from this awesome tutorial...?

husohomeful
Автор

Hello! I am new in this type of coding. I have a problem in my Console app with this code. When i tried to type it i saw an error with the "Queue" and the "Enqueue" code. It was like "The name space does not exist in the current context". Can i get some help?

deyansavchev
Автор

Is the queue some kind of a stack? Great video by the way! Keep going!

WeistarLive
Автор

Good video but isnt Queue exactly like Stack just in fifo-style rather than lifo style?

august
Автор

system collection is deprecated. The new class is System.Generic.Collection

BreegBenjamin