for (int i = 0; i < 10; ++i)
{
i > 5 ? MethodA(i) : MethodB(i);
}
When trying to do the above I get this error
Type of conditional expression cannot be determined because there is no implicit conversion between 'void' and 'void'
Does this mean there is no chance of doing the above with a ternary operator?