String Interpolation Sample

CSharp · Console

/Program.cs

using System;
					
public class Program
{
	static void Main(string[] args)
	{
		int myIntValue = 123;
		string myStringValue = "one two three";
		string interpolatedString = $"my int is: {myIntValue}. My string is: {myStringValue}.";
		Console.WriteLine(interpolatedString);
	}
}
;