This is probably a really simple question but i got a little it confused.
I wanted to write a little example which explains the difference between a non reference and a reference data type.
So i choose 2 ints and 2 strings:
int eins,zwei; string a,b; ... eins = 3; zwei = eins; a = "before"; b = a; //i generated an outout then i set eins = 5; a = "after"; //again i generated an output
what i expected was: eins =5 zwei= 3 a= "after" b= "after"
BUT b is still "before"
i thought with b= a; i set the reference to a so that b would change when i change a; where am i thinking wrong?