我想使用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
}