This is known bug of the C# compiler when enum
is typed as ulong
and you use goto case
at the same time. If you remove the ulong
from enum
, it compiles just fine. And because not many people run into this problem, they are not focusing on fixing it.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…