ReSharper has some problems with the following code:
Cannot convert source type 'null' to target type 'System.Enum'
Cannot apply operator '==' to operands of type 'Enum' and 'null'
Code compiles and works fine, but you can't get rid of the orange marker in the marker bar. ('must' be green everywhere :( )