最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
C#对XML操作:一个处理XML文件的类(2)
时间:2022-07-02 23:38:40 编辑:袖梨 来源:一聚教程网
C#操作XML初步(8)
第四章:通用的XML处理方法(2)
上一篇,我们提供了一个类,用来操作XML文件,这里提供一个应用的例子,来源于无聊时候写的一个XML留言本中对留言数据的处理
代码如下:
using System;
using System.IO;
using System.Data;
using System.Diagnostics;
using XmlBook.Com.Sem.Tools; //这里就包含了上一篇提供的类
namespace XmlBook.Component
{
///
/// 版权: Copyright by SEM IT Department
/// 版本: 0.0.1
/// 文件: XmlBook.Component.MdlDataMange.cs
/// 目的: 留言数据相关的操作
/// 作者: 欧远宁 @2005-04-09
/// 邮箱: [email protected]
/// 修改:
///
public class MdlDataManage
{
#region 私有成员
private string strID = null;
private string strName = null;
private string strSex = null;
private string strEmail = "no email";
private string strPage = "no page";
private string strQQ = "no QQ";
private string strSubject = null;
private string strContent = null;
private string strReply = "no reply";
private string strFilter = null;
第四章:通用的XML处理方法(2)
上一篇,我们提供了一个类,用来操作XML文件,这里提供一个应用的例子,来源于无聊时候写的一个XML留言本中对留言数据的处理
代码如下:
using System;
using System.IO;
using System.Data;
using System.Diagnostics;
using XmlBook.Com.Sem.Tools; //这里就包含了上一篇提供的类
namespace XmlBook.Component
{
///
/// 版权: Copyright by SEM IT Department
/// 版本: 0.0.1
/// 文件: XmlBook.Component.MdlDataMange.cs
/// 目的: 留言数据相关的操作
/// 作者: 欧远宁 @2005-04-09
/// 邮箱: [email protected]
/// 修改:
///
public class MdlDataManage
{
#region 私有成员
private string strID = null;
private string strName = null;
private string strSex = null;
private string strEmail = "no email";
private string strPage = "no page";
private string strQQ = "no QQ";
private string strSubject = null;
private string strContent = null;
private string strReply = "no reply";
private string strFilter = null;
相关文章
- 《超能力冲刺》水风阵容怎么配队 06-16
- 《晶核》平民职业选择推荐细节解读 06-16
- 2025盘点正规币圈十大比特币交易平台TOP10-去中心化加密货币交易所币安app推荐 06-16
- 《花亦山心之月》社团等级提升较好的方法 06-16
- BALL币如何安全存储-2025币安交易所存储教程 06-16
- 币安期权是美式还是欧式 2025期权交易模式全解析 06-16