- @符号:字符串中的转义符不转义,可支持字符串换行,例如:string test = "hello\\",正常输出hello\,改成string test = @"hello\\",输出hello\\
- ??:a??b??c,a为null,返回b,b也为null,返回c
- $:相当于string.Format,string test = $"{变量} test"
优雅的C#
猜你喜欢
转载自www.cnblogs.com/hiker-online/p/12369102.html
今日推荐
周排行