您的位置:程序门 -> .net技术 -> c#



xmlattribute 为什么可以得到web.config中的数据呢?


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


xmlattribute 为什么可以得到web.config中的数据呢?
发表于:2007-01-12 10:40:53 楼主
private   string   _type;

[xmlattribute( "type ")]


public   string   providertype
{
get { return   _type; }
set {   _type   =   value; }
}

public   object   instance()
{
             
// string   songnl=system.type.gettype(this.providertype).tostring();
return   activator.createinstance(system.type.gettype(this.providertype));
}
发表于:2007-01-12 10:54:231楼 得分:0
[xmlattribute( "type ")]
利用反映


快速检索

最新资讯
热门点击