麻烦高手解释下C#一个简单的应用,菜鸟翘首~~~
[ConfigurationProperty("", IsDefaultCollection = true)]--------------------编程问答-------------------- 更正下:
public KeyValueConfigurationCollection ControllerProperties
{
get
{
return this[propertyElement] as KeyValueConfigurationCollection;
}
}
[ConfigurationProperty("", IsDefaultCollection = true)]
public KeyValueConfigurationCollection ControllerProperties
{
get
{
return this[propertyElement] as KeyValueConfigurationCollection;
}
} --------------------编程问答-------------------- 有没有个高手帮帮忙~~~!
[ConfigurationProperty("", IsDefaultCollection = true)]--------------------编程问答-------------------- 么看懂 抱歉 坐等高手。 --------------------编程问答-------------------- 等高手 --------------------编程问答-------------------- this[propertyElement]这种访问形式是索引器
public KeyValueConfigurationCollection ControllerProperties
{
get
{
return this[propertyElement] as KeyValueConfigurationCollection;
}
}
ConfigurationProperty是特性,Attribute
你还想知道什么 --------------------编程问答-------------------- [ConfigurationProperty("", IsDefaultCollection = true)]这种用法的讲解 --------------------编程问答--------------------
去看Attribute特性 --------------------编程问答-------------------- [ConfigurationProperty("", IsDefaultCollection = true)]
其实不用管他到底是什么,怎么来的,去向哪里。
知道怎么用就可以了! --------------------编程问答-------------------- 具体参看MSDN文档
补充:.NET技术 , C#