String.Formatについて学習しようとしていますが、FormatExceptionをスローし続けます。String.FormatのFormatException
誰でも私の間違いを指摘できますか?
static void Main(string[] args)
{
var d = new DateTime(2016,5,10);
var p = "Trumph";
Console.WriteLine(String.Format("Mr. {1} will be elected as president on {2}", p, d));
Console.ReadKey();
}
を見てください'と' {1} ' – schlonzo