how does .net managed memory hoop value forms inside objects?
public category myclass
{
open int age;
open int id;
}
public vacant mymethod()
{
myclass m = new myclass();
int newid;
}
to understanding, following true:
- the anxiety m lives smoke-stack goes out range mymethod() exits.
- the value form newid lives smoke-stack goes out range mymethod() exits.
- the vigilant combined new user lives store becomes reclaimable gc mymethod() exits, presumption anxiety vigilant exists.
here question:
- do value forms within objects live smoke-stack heap?
- is boxing/unboxing value forms an vigilant concern?
- are there any detailed, nonetheless understandable, resources topic?
logically, i'd cruise value forms inside classes heap, nonetheless i'm certain have boxed there.
edit:
suggested reading topic:
Comments
Post a Comment