To make this clear, optimization performs built-in functions and excludes some variables. When debugging optimized code, you will not get the same help from the IDE as usual, as part of the code actually no longer exists. Therefore, for debugging, disable (by default).
In languages such as C ++ optimization, sometimes (often) it has a decisive side effect that needs to be considered. As far as I know, this is not the case or almost not related to C #, so from the point of view of the correctness of your code, it probably does not matter if you optimize or not.
mafu
source share