当字段或方法用于类型('static
-ally'), 但 string
和 long
用于变量初始化?
例子:
string name = "@user";
// but
int compResult = String.Compare(a, b, ...);
long x = 0;
// but
long x = Int64.Parse(s);
最佳答案
目前没有 ReSharper 选项让 String
优于 string
。
关于c# - ReSharper 代码清理,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10568112/