我创建了一个C#Windows Runtime组件,并且以下行:
Windows Runtime
public const bool LOG_ENABLED = false;
抛出错误:
类型'常量'包含外部可见的常量字段'Constants.LOG_ENABLED'.常量只能出现在Windows运行时枚举中
这个错误是什么意思?我怎样才能声明常量?
c# const windows-8 windows-runtime
c# ×1
const ×1
windows-8 ×1
windows-runtime ×1