个人c#编码约定 继承C#编码约定
作者:互联网
1、内插字符 串取代 字符串复合格式设置
使用这个写法: Console.WriteLine($"Hello, {name}! Today is {date.DayOfWeek}, it's {date:HH:mm} now."); 淘汰以下写法: Console.WriteLine("Hello, {0}! Today is {1}, it's {2:HH:mm} now.", name, date.DayOfWeek, date); // String interpolation:
标签:DayOfWeek,编码,Console,c#,约定,HH,WriteLine,date,Today 来源: https://www.cnblogs.com/cdaniu/p/15227651.html