标签: c# resharper resharper-9.0
为什么Resharper 9在提及类string或String时建议使用String.IsNullOrEmpty()代替String.Format(),而Resharper 8则没有?
string
String
String.IsNullOrEmpty()
String.Format()
基于SO帖子,它不应该。 https://stackoverflow.com/a/7077/3410616
答案 0 :(得分:2)
似乎是最新的趋势,并且在Roslyn的建议下也是如此:
https://github.com/dotnet/corefx/blob/master/Documentation/coding-guidelines/coding-style.md
https://github.com/dotnet/corefx/issues/391