Discuz.Common/XmlWriter.cs
(开头部分) 21KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.IO;
using System.Xml;
using System.Text;
using System.Data;
using System.Data.SqlClient;
namespace Discuz.Common
{
/// <summary>
/// XMLComponent 类
/// </summary>
public abstract class XMLComponent
{
private DataTable sourceDT = null;
/// <summary>
/// 源数据表
/// </summary>
public DataTable SourceDataTable
{
set { sourceDT = value; }
get { return sourceDT; }
}
private string fileOutputPath = @"";
/// <summary>
/// 文件输出路径
/// </summary>
public string FileOutPath
{
set
{ //保证路径字符串变量的合法性
if (value.LastIndexOf("\\") != (value.Length-1))
fileOutputPath = value + "\\";
}
get{return fileOutputPath;}
}
private string fileEncode = "utf-8";
/// <summary>
/// 文件编码
/// </summary>
public string FileEncode
{
set { fileEncode = value; }
get { return fileEncode; }
}
private int indentation = 6;
/// <summary>
/// 文件缩进
/// </summary>
public int Indentation
{
set { indentation = value; }
get { return indentation; }
}
后面还有 687 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
