PluginElementCollection.cs 484 B

123456789101112131415161718
  1. using System.Configuration;
  2. namespace CassiniDev.Configuration
  3. {
  4. [ConfigurationCollection(typeof(PluginElement))]
  5. public class PluginElementCollection: ConfigurationElementCollection
  6. {
  7. protected override ConfigurationElement CreateNewElement()
  8. {
  9. return new PluginElement();
  10. }
  11. protected override object GetElementKey(ConfigurationElement element)
  12. {
  13. return ((PluginElement)element).Name;
  14. }
  15. }
  16. }