Answers for "set variable using string c#"

C#
1

how to change a string variables value c#

/* just do the variable without the string part */
string variable = "unchanged";
variable = "changed";
// ez as that now we changed the value from unchanged to changed hope this helpped
Posted by: Guest on June-26-2021
5

c# write variable in string

int age = 22;

Console.WriteLine($"Age: {age}");
Posted by: Guest on July-03-2020

C# Answers by Framework

Browse Popular Code Answers by Language