在C#中,如何使用更短的方法(使用?)表达以下if else语句:
if (condition1 == true && count > 6)
{
dothismethod(value);
}
else if (condition2 == false)
{
dothismethod(value);
}
我的代码看起来很杂乱,需要缩短if、then和else语句长度。请问有好的资源可以推荐吗?