expression ? trueCondition : falseConditionWhat is faster in code execution in line or straight IF structure?
if (TestExpression) { DoSomething1 = true; Dosomething2 = true; DoSomething3 = false; } else { DoSomething1 = false; Dosomething2 = false; DoSomething3 = true; }this..
DoSomething1 = TestExpression ? true : false; Dosomething2 = TestExpression ? true : false; DoSomething3 = TestExpression ? false : true;Thanks!