XMLProcess.cs

(开头部分) 20KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Data;
using System.IO;
using System.Xml;

public class XMLProcess
{
    #region 构造函数
    public XMLProcess()
    { }

    public XMLProcess(string strPath)
    {
        this._XMLPath = strPath;
    }
    #endregion

    #region 公有属性
    private string _XMLPath;
    public string XMLPath
    {
        get { return this._XMLPath; }
    }
    #endregion

    #region 私有方法
    /// <summary>
    /// 导入XML文件
    /// </summary>
    /// <param name="XMLPath">XML文件路径</param>
    private XmlDocument XMLLoad()
    {
        string XMLFile = XMLPath;
        XmlDocument xmldoc = new XmlDocument();
        try
        {
            string filename = AppDomain.CurrentDomain.BaseDirectory.ToString() + XMLFile;
            if (File.Exists(filename)) xmldoc.Load(filename);
        }
        catch (Exception e)
        { }
        return xmldoc;
    }

    /// <summary>
    /// 导入XML文件
    /// </summary>
    /// <param name="XMLPath">XML文件路径</param>
    private static XmlDocument XMLLoad(string strPath)
    {
        XmlDocument xmldoc = new XmlDocument();
        try
        {
            string filename = AppDomain.CurrentDomain.BaseDirectory.ToString() + strPath;
            if (File.Exists(filename)) xmldoc.Load(filename);
        }
        catch (Exception e)
        { }
        return xmldoc;
    }
后面还有 543 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。