InternalConfigConfigurationFactory.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / Configuration / System / Configuration / Internal / InternalConfigConfigurationFactory.cs / 1 / InternalConfigConfigurationFactory.cs

                            //------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//----------------------------------------------------------------------------- 

using ClassConfiguration = System.Configuration.Configuration; 
using System.Collections; 
using System.Configuration;
using System.Configuration.Internal; 
using System.IO;
using System.Reflection;
using System.Security;
using System.Security.Permissions; 
using System.Threading;
 
namespace System.Configuration.Internal { 

    // 
    // Class used to create and initialize an instance of the Configuration class
    // from assemblies other than System.
    //
    internal sealed class InternalConfigConfigurationFactory : IInternalConfigConfigurationFactory { 

        private InternalConfigConfigurationFactory() {} 
 
        ClassConfiguration IInternalConfigConfigurationFactory.Create(Type typeConfigHost, params object[] hostInitConfigurationParams) {
            return new ClassConfiguration(null, typeConfigHost, hostInitConfigurationParams); 
        }

        // Normalize a locationSubpath argument
        string IInternalConfigConfigurationFactory.NormalizeLocationSubPath(string subPath, IConfigErrorInfo errorInfo) { 
            return BaseConfigurationRecord.NormalizeLocationSubPath(subPath, errorInfo);
        } 
    } 
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//----------------------------------------------------------------------------- 

using ClassConfiguration = System.Configuration.Configuration; 
using System.Collections; 
using System.Configuration;
using System.Configuration.Internal; 
using System.IO;
using System.Reflection;
using System.Security;
using System.Security.Permissions; 
using System.Threading;
 
namespace System.Configuration.Internal { 

    // 
    // Class used to create and initialize an instance of the Configuration class
    // from assemblies other than System.
    //
    internal sealed class InternalConfigConfigurationFactory : IInternalConfigConfigurationFactory { 

        private InternalConfigConfigurationFactory() {} 
 
        ClassConfiguration IInternalConfigConfigurationFactory.Create(Type typeConfigHost, params object[] hostInitConfigurationParams) {
            return new ClassConfiguration(null, typeConfigHost, hostInitConfigurationParams); 
        }

        // Normalize a locationSubpath argument
        string IInternalConfigConfigurationFactory.NormalizeLocationSubPath(string subPath, IConfigErrorInfo errorInfo) { 
            return BaseConfigurationRecord.NormalizeLocationSubPath(subPath, errorInfo);
        } 
    } 
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK