C# 继续下一行中的代码
上述格式不起作用。表示C# 继续下一行中的代码,c#,.net,C#,.net,上述格式不起作用。表示无效表达式“| |” C#中的if语句需要完全包含在一组括号中。在两个|ed表达式周围添加另一个集合,即使在两行上也可以正常工作 if (some condition) || (some other condition) { // do something } 您的if语句缺少外圆括号。e、 g if ((some condition) || (some other condition)) { // do something } 您的括号已关闭,
无效表达式“| |”
C#中的if语句需要完全包含在一组括号中。在两个|
ed表达式周围添加另一个集合,即使在两行上也可以正常工作
if (some condition) ||
(some other condition)
{
// do something
}
您的
if
语句缺少外圆括号。e、 g
if ((some condition) ||
(some other condition))
{
// do something
}
您的括号已关闭,应为:
if ((some condition) || (some other condition))
{
// do something
}
if ((some condition) ||
(some other condition))
{
// do something
}