.NET Fiddle

CSharp · Console

/Program.cs

using System;
					
public class Program
{
	public static void Main()
	{
		var number = 42;
		var str = $"The answer to life, the universe and everything is {number, -5}.";
		//str is "The answer to life, the universe and everything is 42   ";
		//                                                           ^^^^^
		Console.WriteLine(str);
	}
}
;