using System;
public class Example
{
public static void Main()
{
Console.WriteLine ($"{1:5d}");
}
}
// The example displays the following output:
// 5d
What does the ":" do in the interpolated string? I know if I write,
$"{1:d5}"
I will get,
00001
but with this I'm not getting an error/warning means it has to mean something that I don't know.
FYI, I'm on C#7.