The text of this article is not in this database — only its details are. Read it on the old site: C# Queue Tutorial
15 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
The text of this article is not in this database — only its details are. Read it on the old site: C# Queue Tutorial
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
Harun OconnellPosted Feb 1, 2023, 6:10 PM
STACK: public void Add(List t) { number++; list.Push(t); } public Paczka DeleteOne() { number--; return list.Pop(); } public void clearr() { list.Clear(); number = 0; } public int givemethenumber() { return list.Count; } public Paczka current() { return list.Peek(); }
Harun OconnellPosted Feb 1, 2023, 6:07 PM
Public void Clearr() { list.Clear(); number= 0; } public int GiveTheNumber() { return list.Count; } public List showcurrent() { return list.Peek(); }
Harun OconnellPosted Feb 1, 2023, 6:06 PM
Public List Delete() { if (number == 0) return null; number--; return list.Dequeue(); }
Harun OconnellPosted Feb 1, 2023, 6:05 PM
Hi, it's for QUEUE: adding: public void Add(List t) { number++; list.Enqueue(t); }
Jaime StuardoPosted Nov 17, 2022, 8:08 PM
Hello.... when converting a Queue to a LIst, elements are also removed from the queue?
Rikam PalkarPosted Oct 26, 2021, 4:16 AM
Job well done.
Lokesh VarmanPosted Apr 9, 2021, 4:26 AM
Can you please help me in implementing a queue in a process where the elements to be added into the queue from a different process
vinay ayinapurapuPosted Mar 8, 2020, 11:16 AM
Can you please tell us how to return queue to main method? The scenario is i wrote a method, that return queue of integers and want to process these values in main method. I tried both these methods declaration but giving null values. public static Queue<int> Bdivision(int n, int p) public static Queue Bdivision(int n, int p)
Pankajkumar PatelPosted Sep 27, 2019, 12:27 AM
Nice article
Джон СинаPosted May 22, 2019, 12:43 AM
Kindergarden-level article, totally useless.
Adonis MendozaPosted Dec 30, 2018, 5:22 PM
When it is necessary to use these?
Rehman ShahidPosted Dec 30, 2018, 12:51 AM
Nice Article..............
Khaja MoizuddinPosted Oct 30, 2018, 11:03 PM
Nicely written Richa ......