c# - Queue hold reference or object value? -


In C #, the following refers to the "container" reference or objects themselves for reference types?

  Qatar Stack array list vector  

For example, if I do the following:

  qi < MyItem & gt; Item = new line & lt; MyItem & gt; (100); Myethum MIT = new mitim (); Item.Enqueue (MIT); The reference to   

MIT has been copied to items or MIT has been moved manually Item Memory Location?

If I say

  items = zero;  

This will not set all the objects to tap inside the item . Am i right

There is a reference to the objects contained in the queue. Canceling the queue will not affect the item itself.


Comments