Using the following set of classes:
public class MyConfigSection : ConfigurationSection { [ConfigurationProperty("Items")] public ItemCollection Items { get { return ((ItemCollection)(base["Items"])); } } } [ConfigurationCollection(typeof(ItemElement), AddItemName = "Item")] public class ItemCollection : ConfigurationElementCollection { ... } public class ItemElement : ConfigurationElement { ... } I organize the reading of the configuration section of the following form:
<MySection> <Items> <Item ... /> <Item ... /> <Item ... /> </Items> </MySection> Is it possible to somehow customize the reading, if I want the section to look like
<MySection> <Item ... /> <Item ... /> <Item ... /> </MySection> those. so that the elements of the collection are not enclosed in <Items></Items> , but read directly from the section.