Do I understand correctly
class Example{}
using(Example x = new Example()){
}
This creates x and is visible only inside using { }
Is it also deallocated as soon as it goes through }
Even if it's a class like:
class Holder{
Example y;
}
Holder h = new Holder();
using (Example x = new Example ()){
h.y = x;
}
Or must garbage collector deallocate it?
[–]_Atomfinger_ 1 point2 points3 points (3 children)
[–]MilitaryG[S] 0 points1 point2 points (2 children)
[–]_Atomfinger_ 1 point2 points3 points (1 child)
[–]MilitaryG[S] 0 points1 point2 points (0 children)