C# program to peek elements from Queue using collection

In this C# program, we will learn how to peek an element from Queue using collection framework? Get element from queue without removing it. Here we use Peek method of Queue class.
Submitted by IncludeHelp, on November 26, 2017

Queue.Peek() method

This is a method of 'Queue' class, it peeks (returns) the elements without removing from the Queue.