车手“表情总是假的”警告

问题描述

为什么骑手在以下代码中发出 "Expression is always false" 警告?

bool b = (await Method1()) &
                  (await Method2()) &
                  (await Method3());

方法1,方法2和方法3相同。

private async Task<bool> Method1()
{
    return true;
}

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)