In C #, do the following “containers” contain a link or object for reference types?
Queue
Stack
Array
List
Vector
For example, if I do the following:
Queue<MyItem> item = new Queue<MyItem>(100);
MyItem mit = new MyItem();
item.Enqueue(mit);
Is the link mitcopied to itemor the object itself mittransferred to the memory cell item?
if i say
item = null;
it will not set all objects inside itemequal to zero. I'm right?
source
share