TypeProvider.cs 774 B

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Configuration;
  6. namespace SuperSocket.SocketBase.Config
  7. {
  8. /// <summary>
  9. /// Type provider configuration
  10. /// </summary>
  11. public class TypeProvider : ConfigurationElement, ITypeProvider
  12. {
  13. /// <summary>
  14. /// Gets the name.
  15. /// </summary>
  16. [ConfigurationProperty("name", IsRequired = true)]
  17. public string Name
  18. {
  19. get { return this["name"] as string; }
  20. }
  21. /// <summary>
  22. /// Gets the type.
  23. /// </summary>
  24. [ConfigurationProperty("type", IsRequired = true)]
  25. public string Type
  26. {
  27. get { return this["type"] as string; }
  28. }
  29. }
  30. }