我想使用 C# 以编程方式打开生成的 .PRI 文件(c:\test\resource.pri) 。
问题是ResourceManager的方法将IEnumerable<IStorageFile>类型的对象作为参数
我希望能够做类似的事情
using Windows.ApplicationModel.Resources.Core;
ResourceManager rm = ResourceManager.Current;
//Now something like
IStorageFile stFile = IStorageFile.OpenPath(@"c:\test\resource.pri");
//but IStorageFile is static, how can I serialize it ??
IEnumerable<IStorageFile> files = new IEnumerable<IStorageFile>();
files.Add(stFile);
var priResources = rm.LoadPriFiles(files);
void process(priResources){
//extract the resources from priResources
//need this implementation also
}