-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathXMLNodeList.cs
More file actions
executable file
·49 lines (43 loc) · 983 Bytes
/
XMLNodeList.cs
File metadata and controls
executable file
·49 lines (43 loc) · 983 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*----------------------------------------------------------------
// Copyright (C) 2015 广州,Lucky Game
//
// 模块名:Xml 解析工具
// 创建者:D.S.Qiu
// 修改者列表:
// 创建日期:February 29 2016
// 模块描述:
//----------------------------------------------------------------*/
#if WP_BUILD
using ArrayList = MarkerMetro.Unity.WinLegacy.Plugin.Collections.ArrayList;
#else
using System.Collections.Generic;
#endif
public class XMLNodeList : List<XMLNode>
{
public XMLNode this[int index]
{
get
{
return base[index] as XMLNode;
}
}
public XMLNode Pop()
{
XMLNode result = this[this.Count - 1] as XMLNode;
this.RemoveAt(this.Count - 1);
return result;
}
public void Push(XMLNode node)
{
this.Add(node);
}
public override string ToString()
{
string toText = string.Empty;
foreach (XMLNode node in this)
{
toText += node + "\n";
}
return toText;
}
}