如何使用Windows.ApplicationModel.Resources.Core.ResourcesManager.LoadPriFiles打开.PRI文件?

时间:2013-02-07 14:50:25

标签: c# .net resources

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

0 个答案:

没有答案