高分,请您给看这个私有变量是从哪来的。100分,100分。
.net2.0 自定义配置节 (处理自定义配置文件)
文件来源是:
http://www.cnblogs.com/luoxiao/archive/2007/08/03/842199.html
public class MyBookShopConfigurationElement : ConfigurationElement
{
public MyBookShopConfigurationElement(String key, String value)
{
this.Key = key;
this.Value = value;
}
public MyBookShopConfigurationElement()
{
}
[ConfigurationProperty( "key ", DefaultValue = " ", IsRequired = true, IsKey = true)]
public string Key
{
get
{
return (string)this[ "key "];
}
set
{
this[ "key "] = value;
}
}
[ConfigurationProperty( "value ", DefaultValue = " ", IsRequired = true)]
//[RegexStringValidator(@ "\w+:\/\/[\w.]+\S* ")]
public string Value
{
get
{
return (string)this[ "value "];//这是这个,这个私有变量是哪 来的??
}
set
{