public sealed class MyActionCollection : ConfigurationElementCollection
{
protected override ConfigurationElement CreateNewElement()
{
return new MyAction();
}
protected override object GetElementKey(ConfigurationElement element)
{
return ((MyAction)element).Name;
}
public override ConfigurationElementCollectionType CollectionType
{
get
{
return ConfigurationElementCollectionType.BasicMap;
}
}
protected override string ElementName
{
get
{
return "pippo";
}
}
}