如何在dll中读取xml文件 [英] How can read xml file in dll
本文介绍了如何在dll中读取xml文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的c#dll中有一个xml文件
我该怎么读取文件?
在wp7中我读了xml(在dll中)像这样:
StreamResourceInfo xml = Application.GetResourceStream(new Uri(" / dll; component / settings.xml",System.UriKind.Relative) );
让信任简单起来
解决方案
请参阅XmlReader 。创建方法(字符串) at
http://msdn.microsoft.com/en-us/library/windows/apps/w8k674bf(v=vs.110).aspx 。
I have a xml file in my c# dll
how can I read the file?
In wp7 I read xml (in dll) like this :
StreamResourceInfo xml = Application.GetResourceStream(new Uri("/dll;component/settings.xml", System.UriKind.Relative));
让信任简单起来
解决方案
Please see XmlReader.Create Method (String) at http://msdn.microsoft.com/en-us/library/windows/apps/w8k674bf(v=vs.110).aspx.
这篇关于如何在dll中读取xml文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文