コードインスペクション: 冗長な '文字列.Format()' 呼び出し
Console.WriteLine() を使用する場合、 String.Format() メソッドは冗長です。 Console.WriteLine() は実際に出力ストリームに結果を書き込む前に String.Format() を呼び出すオーバーロードを持っています。
Console.WriteLine(string.Format("This is {0}", z));
Console.WriteLine("This is {0}", z)
2026 年 6 月 12 日