"Aligned String Interpolation"

static void Test() {
	var names = new[] { "Ben", "Javier", "Chris" };
	var favoriteFoods = new[] { "Ramen", "Something Vegetarian", "No idea" };
	
	for (var i = 0; i < 3; ++i) {
		Console.WriteLine($"Name: {names[i],10} | Food: {favoriteFoods[i]}"); // Notice the ,10 that right-aligns names to a 10-column width
	}
}

/* Prints:
 * Name:        Ben | Food: Ramen
 * Name:     Javier | Food: Something Vegetarian
 * Name:      Chris | Food: No idea
*/





static void Test() {
	var names = new[] { "Ben", "Javier", "Chris" };
	var favoriteFoods = new[] { "Ramen", "Something Vegetarian", "No idea" };
	
	for (var i = 0; i < 3; ++i) {
		Console.WriteLine($"Name: {names[i],-10} | Food: {favoriteFoods[i]}"); // Notice the ,-10 that left-aligns names to a 10-column width
	}
}

/* Prints:
 * Name: Ben        | Food: Ramen
 * Name: Javier     | Food: Something Vegetarian
 * Name: Chris      | Food: No idea
*/


Code snippet taken from "Two Decades of C#: A Reference - C# 5 and C# 6".