ConfigurationSettings.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. //
  2. // System.Configuration.ConfigurationSettings.cs
  3. //
  4. // Author:
  5. // Christopher Podurgiel ([email protected])
  6. //
  7. // (C) Ximian, Inc. http://www.ximian.com
  8. //
  9. using System;
  10. using System.Collections.Specialized;
  11. namespace System.Configuration
  12. {
  13. /// <summary>
  14. /// Component class.
  15. /// </summary>
  16. /// <remarks>
  17. /// Longer description
  18. /// </remarks>
  19. public sealed class ConfigurationSettings
  20. {
  21. private NameValueCollection appsettings;
  22. /// <summary>
  23. /// ConfigurationSettings Constructor.
  24. /// </summary>
  25. public ConfigurationSettings ()
  26. {
  27. appsettings = new NameValueCollection();
  28. }
  29. /// <summary>
  30. /// Returns configuration settings for a user-defined configuration section.
  31. /// </summary>
  32. /// <param name="sectionName"></param>
  33. /// <returns></returns>
  34. public static object GetConfig( string sectionName)
  35. {
  36. //FIXME: Not sure how to determine the correct .config file to parse.
  37. return null;
  38. }
  39. /// <summary>
  40. /// Get the Application Configuration Settings.
  41. /// </summary>
  42. public NameValueCollection AppSettings
  43. {
  44. get
  45. {
  46. return appsettings;
  47. }
  48. }
  49. }
  50. }