Value types and thread stack

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I have two value type variables A and B. If I assign to variable A variable
B by reference and variable B goes out of scope what will variable A contain ?

Thanks.
 
I have two value type variables A and B. If I assign to variable A variable
B by reference and variable B goes out of scope what will variable A contain ?

I'm not sure what you mean by "assign by reference". But variable A
isn't affected by B going out of scope, it will keep the value you
assigned to it.



Mattias
 
Back
Top