建议7 将0值作为枚举的默认值

xiaoxiao2021-02-27  711

允许使用枚举类型有byte、sbyte、short、ushort、int、uint、long和ulong。 应该始终将0值作为枚举的默认值。因为枚举的默认值就是0,会避免一些不必要的错误。
转载请注明原文地址: https://www.6miu.com/read-727.html

最新回复(0)