Part 82 Generic queue collection class











>> YOUR LINK HERE: ___ http://youtube.com/watch?v=_Ffr_qo0BbM

Text version of the video • http://csharp-video-tutorials.blogspo... • Healthy diet is very important both for the body and mind. If you like Aarvi Kitchen recipes, please support by sharing, subscribing and liking our YouTube channel. Hope you can help. •    / @aarvikitchen5572   • Slides • http://csharp-video-tutorials.blogspo... • Link for csharp, asp.net, ado.net, dotnet basics, mvc and sql server video tutorial playlists • https://www.youtube.com/user/kudvenka... • Queue is a generic FIFO (First In First Out) collection class that is present in System.Collections.Generic namespace. The Queue collection class is analogous to a queue at the ATM machine to withdraw money. The order in which people queue up, will be the order in which they will be able to get out of the queue and withdraw money from the ATM. The Queue collection class operates in a similar fashion. The first item to be added (enqueued) to the queue, will be the first item to be removed (dequeued) from the Queue. • To add items to the end of the queue, use Enqueue() method. • To remove an item that is present at the beginning of the queue, use Dequeue() method. • A foreach loop iterates thru the items in the queue, but will not remove them from the queue. • To check if an item, exists in the queue, use Contains() method. • What is the difference between Dequeue() and Peek() methods? • Dequeue() method removes and returns the item at the beginning of the queue, where as Peek() returns the item at the beginning of the queue, without removing it.

#############################









Content Report
Youtor.org / YTube video Downloader © 2025

created by www.youtor.org