0
我在使用资源文件时遇到了一个问题。我正在使用Resource文件来保存变量的值。现在当我访问资源文件时,它不显示键(属性),直到我将它分配给另一个变量。即资源文件未显示其属性
var tempVar = ResourceFileName.Variable1 // it shows Variable1 in intellisense.
,但如果我使用
ResourceFileName.Variable1 //it doesn't show up.
即使我return语句即
return ResourceFileName.Variable1 // doesn't work.
PS:我已经添加引用用于类库项目资源文件和访问它们。
任何帮助将不胜感激。
感谢 阿莫德