how to get mulitple references to the same string?

  • Thread starter Thread starter Daniel
  • Start date Start date
D

Daniel

is it something like this? string str = "foo"; object var1 = ref str; object
var2 = ref str; some thing like that?
 
string str = "foo";
string str2 = str;
string str3 = str;

Now, str, str2 & str3 all reference the same string.

Hope I got the question right.

is it something like this? string str = "foo"; object var1 = ref str; object
var2 = ref str; some thing like that?
 
Back
Top