J
Jaga
How can I pass references of int and string to an array in managed code?
int i = 1;
string s = "1";
object[] a = {ref i, ref s}; //error
a[0] = 2;
a[1] = "2";
(i == 2 && s == "2") should return true now.
Thanks,
Jaga
int i = 1;
string s = "1";
object[] a = {ref i, ref s}; //error
a[0] = 2;
a[1] = "2";
(i == 2 && s == "2") should return true now.
Thanks,
Jaga