config-designer-csd

.NET Configuration Section Designer - Where is my collection?

你离开我真会死。 提交于 2019-12-05 04:04:37
问题 I am using the Configuration Section Designer for .NET to build a simple ConfigurationElementCollection . It appears that everything builds just fine and the code is automatically generated since the sub-elements are visible with Intellisense. Unfortunately, even though I have added elements to the collection in the configuration section, they do not exist at run-time; it shows the collection's Length property to be 0 - i.e. the collection is empty even though, as you can see in my example

.NET Configuration Section Designer - Where is my collection?

会有一股神秘感。 提交于 2019-12-03 20:58:47
I am using the Configuration Section Designer for .NET to build a simple ConfigurationElementCollection . It appears that everything builds just fine and the code is automatically generated since the sub-elements are visible with Intellisense. Unfortunately, even though I have added elements to the collection in the configuration section, they do not exist at run-time; it shows the collection's Length property to be 0 - i.e. the collection is empty even though, as you can see in my example XML, I have clearly put them there: Example configuration <logParserSettings xmlns="LogParser">