0
看看下面的代码:变量声明的IF C#里面
if(down == null || down.GetFace() != Face.None || down.GetFace() != Face.Partial)
{
// I called GetFace() two times
// How can i avoid to call it two times, and still putting inside that if
}
谢谢!
最好还是问了一个问题,这个问题身体的一部分,而不是你的代码示例中的注释。人们可能会错过它。 – Oded