Closed PoKNicolas closed 1 month ago
That is interesting. .NET 8 optimized the condition to:
public bool TestWithOr
{
get
{
TestEnum @enum = Enum;
if ((uint)@enum <= 1u)
{
return true;
}
return false;
}
}
With .net 8 RC2 the "or" causes an exception when decompile, while "||" works. With .net 7 "or" and "||" both works fine.
Here is some sample code:
and try to decompile