最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
使用xmltextreader对xml进行简单的读取和写入操作
时间:2022-07-02 11:46:41 编辑:袖梨 来源:一聚教程网
使用xmltextreader对xml文件进行简单的以对象形式的读取和写入操作
BaseSerializeElement
-------------------------------------------------------------
using System;
using System.Xml;
using System.Collections;
namespace Local.Framework.Common
{
///
/// BaseXmlSerializer 的摘要说明。
/// --fallseir.li 20050427 15:12
///
public class BaseSerializeElement
{
public BaseSerializeElement()
{
}
public BaseSerializeElement(XmlReader reader,bool isroot)
{
this._isroot=isroot;
ReadXml(reader,isroot);
}
public BaseSerializeElement(XmlReader reader):this(reader,false){}
#region attributes
public bool IsRoot
{
get{return _isroot;}
}
private bool _isroot;
public string TAG
{
get{return _tag;}
}
private string _tag;
public string Value
{
get{return _value;}
}
BaseSerializeElement
-------------------------------------------------------------
using System;
using System.Xml;
using System.Collections;
namespace Local.Framework.Common
{
///
/// BaseXmlSerializer 的摘要说明。
/// --fallseir.li 20050427 15:12
///
public class BaseSerializeElement
{
public BaseSerializeElement()
{
}
public BaseSerializeElement(XmlReader reader,bool isroot)
{
this._isroot=isroot;
ReadXml(reader,isroot);
}
public BaseSerializeElement(XmlReader reader):this(reader,false){}
#region attributes
public bool IsRoot
{
get{return _isroot;}
}
private bool _isroot;
public string TAG
{
get{return _tag;}
}
private string _tag;
public string Value
{
get{return _value;}
}
相关文章
- 碧蓝航线的里雅斯特期待的便当时间皮肤有什么 04-30
- 明日之后踏浪逐星服装展示攻略 04-30
- 深空之眼幽月塞勒涅刻印搭配核心思路 04-30
- 明日之后红杉茶会护卫队首领BOSS有哪些 04-30
- CF手游段位奖励汇总攻略 04-30
- 无期迷途5-13怎么走攻略 04-30