- 博客(4)
- 收藏
- 关注
转载 .net读取xml文件
<br /> <br />//XML 文件<?xml version="1.0" encoding="utf-8" ?><JLVersion> <version> <Number>jl-11.0104</Number> <Time>2011-01-04</Time> </version></JLVersion> //读取xml 返回listpublic List<string> getVersion(){
2011-02-26 22:46:00 421
转载 检测xml字符串是否合法
<br />try{ System.Xml.XmlDocument doc = new System.Xml.XmlDocument(); doc.LoadXml(xmlStr); return 合格}catch(Exception ex){ //不合格}
2011-02-26 22:31:00 1334
原创 c# winform app.config xml 配置文件 读写操作
<br /> /// <summary> /// 设置配置文件 对指定项设置指定值 /// </summary> /// <param name="AppKey"></param> /// <param name="AppValue"></param> public static void SetValue(string AppKey, string AppValue) {
2011-02-19 22:37:00 2499
转载 c# winform 读取ini配置文件信息内容
public string inipath=Application.StartupPath+"//system.ini"; [DllImport("kernel32")] private static extern long WritePrivateProfileString(string section, string key, string val, string filePath); [DllImport("kernel32")] private
2011-02-19 22:29:00 2106
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人