The Labs \ Source Viewer \ SSCLI \ System.Configuration.Internal \ InternalConfigConfigurationFactory

  1. //------------------------------------------------------------------------------
  2. // <copyright file="InternalConfigConfigurationFactory.cs" company="Microsoft">
  3. //
  4. // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
  5. //
  6. // The use and distribution terms for this software are contained in the file
  7. // named license.txt, which can be found in the root of this distribution.
  8. // By using this software in any fashion, you are agreeing to be bound by the
  9. // terms of this license.
  10. //
  11. // You must not remove this notice, or any other, from this software.
  12. //
  13. // </copyright>
  14. //------------------------------------------------------------------------------
  15. using ClassConfiguration = System.Configuration.Configuration;
  16. using System.Collections;
  17. using System.Configuration;
  18. using System.Configuration.Internal;
  19. using System.IO;
  20. using System.Reflection;
  21. using System.Security;
  22. using System.Security.Permissions;
  23. using System.Threading;
  24. namespace System.Configuration.Internal
  25. {
  26.    
  27.     //
  28.     // Class used to create and initialize an instance of the Configuration class
  29.     // from assemblies other than System.
  30.     //
  31.     internal sealed class InternalConfigConfigurationFactory : IInternalConfigConfigurationFactory
  32.     {
  33.        
  34.         private InternalConfigConfigurationFactory()
  35.         {
  36.         }
  37.        
  38.         ClassConfiguration IInternalConfigConfigurationFactory.Create(Type typeConfigHost, params object[] hostInitConfigurationParams)
  39.         {
  40.             return new ClassConfiguration(null, typeConfigHost, hostInitConfigurationParams);
  41.         }
  42.        
  43.         // Normalize a locationSubpath argument
  44.         string IInternalConfigConfigurationFactory.NormalizeLocationSubPath(string subPath, IConfigErrorInfo errorInfo)
  45.         {
  46.             return BaseConfigurationRecord.NormalizeLocationSubPath(subPath, errorInfo);
  47.         }
  48.     }
  49. }

Developer Fusion