using System.Collections.Generic;
namespace ConsoleApplication2
static void Main(string[] args)
CustomeQueue<string> newQueue = new CustomeQueue<string>();
public class CustomeQueue<T> where T : class
private Queue<T> Q = new Queue<T>();
{ Q.Dequeue(); Q.Enqueue(value); }