Recently I came across an assignment to a Boolean variable as follows:
bool varTeste = (varEntrada == 100) ? true : false;
I know this is the same as the code below:
bool varTeste = (varEntrada == 100);
The question is whether performance / processing difference exists or does ? true : false
just be unnecessary?