C# Enqueue and Dequeue queue operations

Queue<string> myQueue = new Queue<string>(); 
void AddQueueItem(string request) 
{ 
	myQueue.Enqueue(request) ; 
} 
string GetNextQueueItem() 
{ 
	return myQueue.Dequeue() ; 
}

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.