C # and enumerated queue

FIFO queue is a mechanism, the keyword is declared Queue Queue is a queue name = new Queue, add keywords queue is Enqueue, delete the keyword is Dequeue.

 

Enumeration is a value type, inherited from System.Enum, System.Enum is a unique reference type was quoted System.ValueType

Enumeration values can be directly specified value, the value is not continuous, the specific type is int worth
if every item does not specify a specific enumeration value, then the value is an integer from 0 to start, than the value of each item. in front of a large item 1

Guess you like

Origin www.cnblogs.com/lixinglong123/p/11166202.html