温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:IFNuke1.1.0版源码
当前文件:
IFnuke110/Core/Provider.cs,打开代码结构图
IFnuke110/Core/Provider.cs,打开代码结构图1using System; 2
using System.Collections.Generic; 3
using System.Text; 4
using System.Xml; 5
using System.Collections.Specialized; 6
7
namespace IFNuke 8
{ 9
public class Provider 10
{ 11
private string _name; 12
private string _type; 13
private NameValueCollection _attributes = new NameValueCollection(); 14
15
public string Name 16
{ 17
get { return _name; } 18
} 19
public string Type 20
{ 21
get { return _type; } 22
} 23
public NameValueCollection Attributes 24
{ 25
get { return _attributes; } 26
} 27
28
public Provider(XmlAttributeCollection attributes) 29
{ 30
_name = attributes["name"].Value; 31
_type = attributes["type"].Value; 32
33
// Store all the attributes in the attributes bucket 34
foreach(XmlAttribute attr in attributes) 35
{ 36
if(attr.Name != "name" && attr.Name !="type") 37
_attributes.Add(attr.Name,attr.Value); 38
} 39
} 40
} 41
}





}
}