C# - are all Enum constants?

后端 未结 2 529
深忆病人
深忆病人 2021-01-04 08:56

Are all Enum enumerations constants? Do they get converted to their value at compile-time, or at run-time?

2条回答
  •  南笙
    南笙 (楼主)
    2021-01-04 09:39

    Enum values are constants, they cannot change.

    Their values are fixed at compile time.

提交回复
热议问题