Not exactly C# 6, but simple: Copy Code. string x = "3"; Console.WriteLine(x.PadLeft(2, '0')).
確定! 回上一頁