读取xml文件

来源:互联网 发布:mac jenkins 安装路径 编辑:程序博客网 时间:2024/06/16 12:19

 string xmlProfile=null;              
   Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream("Centrify.DirectAudit.SessionPlayer.Logic.WmvProfile.xml");// namespace + filename

System.IO.TextReader reader = new System.IO.StreamReader(stream);
            xmlProfile = reader.ReadToEnd();

原创粉丝点击