String Interpolation in C#.
Interpolated string in C# is a string preceded by the $ symbol. Such a string may contain special expressions in curly brackets: int x = 18; Console.Write($"Specified age {x} years."); // Outputs: Specified age 18 years.
1 posts
Interpolated string in C# is a string preceded by the $ symbol. Such a string may contain special expressions in curly brackets: int x = 18; Console.Write($"Specified age {x} years."); // Outputs: Specified age 18 years.