I know this may seem a bit like nitpicking, but would it make any difference to use
public int foo()
{
if (myInt == 1) return 2;
if (myInt == 2) return 1;
return 0;
}
or
public int bar()
{
if (myInt == 1) return 2;
else if (myInt == 2) return 1;
else return 0;
}
Or perhaps tehre are other solutions?
I know also you probably can dig this out examining IL dissasembly, but I'm a layman on this subject.