Queue<string> myQueue = new Queue<string>();
// Enqueue an item.
myQueue.Enqueue("My Data To be transmitted");
// Check if there is any data in my queue.
if(myQueue.Count > 0)
{
// There is data in the queue.
}
// Find the first item in the queue while leaving it in the queue.
string firstItem = myQueue.Peek();
// Find the first item in the queue while removing it from the queue.
string firstItemNowRemoved = myQueue.Dequeue();
Tech, life, family, faith: Give me a visit. I'm currently blogging about: God-as-Judge, God-as-Forgiver The apostle Paul, modernly speaking: Epistles of Paul Judah Himango