Open EXKulo opened 5 years ago
https://exkulo.github.io/2019/09/04/CLR-via-CSharp-05/
常量常量的值必须只能在编译时确定,一般只支持基元类型:Boolean, Char, Byte, SByte, Int16, UInt16, Int32, UInt32, Int64, UInt64, Single, Double, Decimal和string。(注意:基元类型不一定是值类型)。想设置非基元类型也可以,不过只支持设置null: 1234public sealed class Som
https://exkulo.github.io/2019/09/04/CLR-via-CSharp-05/
常量常量的值必须只能在编译时确定,一般只支持基元类型:Boolean, Char, Byte, SByte, Int16, UInt16, Int32, UInt32, Int64, UInt64, Single, Double, Decimal和string。(注意:基元类型不一定是值类型)。想设置非基元类型也可以,不过只支持设置null: 1234public sealed class Som