var title = String.Format("{0} ({1})", post.Title, post.Comments.Count);
//C# 6 introduces a beautiful way to write the same code in a more direct way:
var title = $"{post.Title} ({post.Comments.Count})";
string name = "Mark";
var date = DateTime.Now;
Console.WriteLine($"Hello, {name}! Today is {date.DayOfWeek}, it's {date:HH:mm} now.");
Console.WriteLine($"I have {2*2} apples");
// For ternary or "" add ()
Console.WriteLine($"I have a very cute {(true ? "cat": "dog")}");
var apples = 4;
var bananas = 3;
Console.WriteLine($"I have {apples} apples");
Console.WriteLine($"I have {apples + bananas} fruits");
string foo = "bar";
Console.WriteLine($"{foo}") // prints "bar"