循环1000000000次,
string a = "100";
string b = "200";
for (int i = 0; i < 1000000000; i++)
{
if(string.IsNullOrEmpty(a))
{
continue;
}
if (string.IsNullOrEmpty(b) )
{
continue;
}
}
string.IsNullOrEmpty(a)比a=string.Empty()效率高
a=string.Empty()跟a="" 效率一样
if(a){...} if(b){...} 比 if(a || b效率高)
if(a && b) 比 if(a){...} if(b){...} 效率高
标签:...,string,效率高,c#,continue,为空,字符串,IsNullOrEmpty From: https://www.cnblogs.com/simpleyue/p/17173385.html