您目前尚未登陆,请选择【登陆】或【注册
首页->全站代码->IFNuke1.1.0版源码>>Core/Provider.cs>>源码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:IFNuke1.1.0版源码
当前文件:文件类型 IFnuke110/Core/Provider.cs打开代码结构图
普通视图
		            
1using System; 2using System.Collections.Generic; 3using System.Text; 4using System.Xml; 5using System.Collections.Specialized; 6 7namespace 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}
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:IFNuke1.1.0版源码
51Aspx.com 版权所有 CopyRight © 2000-2008. 京ICP备06046876号