Check out example codes for "c# write variable in string". It will help you in understanding the concepts better.

Code Example 1

int age = 22;

Console.WriteLine($"Age: {age}");

Code Example 2

private string text;

Console.WriteLine(text);

Learn ReactJs, React Native from akashmittal.com