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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top