I have a config file as follows :
<section>
<template Count="20">
<data>
some data here
</data>
<data>
some more data here
</data>
</template>
<template Count="25">
<data>
some data here
</data>
<data>
some more data here
</data>
</template>
</section>
I have a template class inherited from ConfigurationElementCollection :
public sealed class template<T> : ConfigurationElementCollection, IEnumerable<T>
where T : ConfigurationElement, new()
{
...
}
I need a way to access the attribute "count", How should I define the count ConfigurationProperty and do I have to over ride the OnDeserializeUnrecognizedElement ?