1 string str = string.Format("my name is{0}, I'm {1} years old",name,age); 2 string str2 = $"my name is{name}, I'm {age} years old";
1 string str = string.Format("my name is{0}, I'm {1} years old",name,age); 2 string str2 = $"my name is{name}, I'm {age} years old";