コード例 #1
0
ファイル: Rss.cs プロジェクト: Angliy/Common
 public Rss()
 {
     rssDoc = new XmlHelper(false);
     rssDoc.LoadXml("<?xml version=\"1.0\" encoding=\"utf-8\"?><rss version=\"2.0\"><channel></channel></rss>");
     channel = new RssChannel();
 }
コード例 #2
0
ファイル: MutilLanguage.cs プロジェクト: Angliy/Common
 private void Init(string filePath, bool forHtml, bool getValueByCookie)
 {
     helper = new XmlHelper(forHtml);
     if (!helper.Load(filePath))
     {
         throw new Exception("加载语言文件失败:" + filePath);
     }
     if (getValueByCookie)
     {
         GetFromCookie();
     }
 }