在 C# 中,如何使用更短的方法(使用?)来表达以下 if else 语句:
if (condition1 == true && count > 6)
{
dothismethod(value);
}
else if (condition2 == false)
{
dothismethod(value);
}
我的代码与这些语句看起来真的很乱。有人可以指导我找到有关 if then else 快捷语法的好资源吗?