| Some facts about the Queue in csharp?
Below are some important facts about the Queue in c#:-
(1)When we say about the Queue we are here allowed to store duplicate elements.
(2)When we say about the Queue class this class implemenets the IEnumerable, ICLoneable and ICollection interfaces.
(3)When we add any item in the list then it is called enqueue.
(4)When we try to remove and item then it is called dequeue.
(5)When we say about the null value Queue accepts null as a valid value for reference types.
(6)When we say about the capacity of a Queue is number of elements the Queue can hold.
(7)When we added elements in Queue, the capacity of Queue is automatically increased as required by reallocating the internal array. | | |