PluginElement.cs 705 B

123456789101112131415161718192021222324252627282930313233
  1. using System.Configuration;
  2. namespace CassiniDev.Configuration
  3. {
  4. public class PluginElement : ConfigurationElement
  5. {
  6. [ConfigurationProperty("name", IsKey = true, IsRequired = true)]
  7. public string Name
  8. {
  9. get
  10. {
  11. return (string)this["name"];
  12. }
  13. set
  14. {
  15. this["name"] = value;
  16. }
  17. }
  18. [ConfigurationProperty("type", IsRequired = true)]
  19. public string Type
  20. {
  21. get
  22. {
  23. return (string)this["type"];
  24. }
  25. set
  26. {
  27. this["type"] = value;
  28. }
  29. }
  30. }
  31. }