日期:2014-05-18  浏览次数:20524 次

孟子,思归,慕白,能不能救我于水火啊,我真是晕倒多次了。
原贴子是
http://community.csdn.net/Expert/topic/5711/5711395.xml?temp=.7286493


我在读以下文章时
.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 "];//这是这个,这个私有变量是哪   来的??没有发现在哪定义的啊???
                        }
                      &