public static void Circular(ConcurrentLinkedQueueSlim <T> queue) { queue.Last.Next = queue.First; return; //queue.Last.Next = queue.First.Previous = queue.Last; //new LinkedListNode<T>(queue.Last.Value) //{ // //List = null, //internal constructor... // //Next = null, // //Last = null, // //Previous = null, // Value = default(T) //}; //if (queue == null) return; ////If the queue was empty //if (queue.IsEmpty) //{ // queue.Last = new LinkedListNode<T>(default(T)); // queue.First = new LinkedListNode<T>(default(T)); //} ////First.Previous = queue.Last //PreviousProperty.SetValue(queue.First, queue.Last); ////Last.Next = queue.First //NextProperty.SetValue(queue.Last, queue.First); }