public static IDictionary<string, string> ReadJavaScript(XmlDocument doc)
{
IDictionary<string, string> javaScriptDtn = new Dictionary<string, string>();
try
{
XmlNode rootNode = doc.SelectSingleNode("NewOpeVMAplConfig/JavaScript");
foreach (XmlNode node in rootNode.ChildNodes)
{
if (node.Name.StartsWith("JS"))
{
string str = node.Name.Substring(2, 2);
if (!javaScriptDtn.ContainsKey(str))
{
javaScriptDtn.Add(str, node.InnerText);
}
else
{
Console.WriteLine(str);
}
}
}
}
catch (Exception ex)
{
LogHelper.GetInstance().WriteLog(LOG_TyPe.LOG_ERROE, "JavaScript文読み込み失敗");
LogHelper.GetInstance().WriteErrorLog(ex.Message);
throw ex;
}
return javaScriptDtn;
}
{
IDictionary<string, string> javaScriptDtn = new Dictionary<string, string>();
try
{
XmlNode rootNode = doc.SelectSingleNode("NewOpeVMAplConfig/JavaScript");
foreach (XmlNode node in rootNode.ChildNodes)
{
if (node.Name.StartsWith("JS"))
{
string str = node.Name.Substring(2, 2);
if (!javaScriptDtn.ContainsKey(str))
{
javaScriptDtn.Add(str, node.InnerText);
}
else
{
Console.WriteLine(str);
}
}
}
}
catch (Exception ex)
{
LogHelper.GetInstance().WriteLog(LOG_TyPe.LOG_ERROE, "JavaScript文読み込み失敗");
LogHelper.GetInstance().WriteErrorLog(ex.Message);
throw ex;
}
return javaScriptDtn;
}

被折叠的 条评论
为什么被折叠?



