I was looking at this question
Custom app.config section with a simple list of "add" elements
and I saw the following code for SwDevMan81 answer
public class MyConfigInstanceCollection : ConfigurationElementCollection
{
public new MyConfigInstanceElement this[string elementName]
{
get
{
return this.OfType<MyConfigInstanceElement>().FirstOrDefault(item => item.Name == elementName);
}
}
}
and I cant really figure out what this is called.
It appears to be a property with a get accessor, but then it holds a new keyword in front of the object type. It appears to have an array indexer formed like method arguments. I tired looking at the ConfigurationElementCollection and ICollection but I didn't see anything that looked like this when I scanned the documentation.
What features is this ?