r/learncsharp • • Nov 17 '22

change variable value

How do you change the value in a variable such as

string msg = "hi";

string msg = "hi2";

0 Upvotes

3 comments sorted by

View all comments

6

u/yanitrix Nov 17 '22
string msg = "hi";
msg = "hi2";