CodePudding user response:
You don't also know reference type?CodePudding user response:
You put the same object in two, you want to get two different objects, is there such a thing?CodePudding user response:
With the SQL with queue also do not have what relation.Reference... Baidu it..
CodePudding user response:
You are on the same object assignment twice! As reference so they point to address is the same, so you are added to the queue in the same object, your output will always be the last change of The Times the value of theQueueInfo queueInfo01=new queueInfo.
Listqueue. The Enqueue (queueInfo01);
QueueInfo queueInfo02=new queueInfo.
Listqueue. The Enqueue (queueInfo02);
Need New New object every time! To go there will be no problem!
CodePudding user response: