src/openSourceC.DotNetLibrary.Legacy/ProviderSystem/AbstractProvider.cs
/// <summary>
///		Creates a provider instance that implements <typeparamref name="TInterface"/>.
/// </summary>
/// <typeparam name="TInterfaceSettingsElement">The settings element type.</typeparam>
/// <typeparam name="TInterface">The interface type.</typeparam>
/// <param name="appDomain">The <see cref="T:AppDomain"/> to instantiate the provider in, or
///		<b>null</b> to use the current <see cref="T:AppDomain"/>.</param>
/// <param name="settings">The <typeparamref name="TInterfaceSettingsElement"/>
///		object.</param>
/// <param name="args">The arguments to pass to the constructor. This array of arguments
///		must match in number, order, and type the parameters of the constructor to invoke.
///		If the default constructor is preferred, <paramref name="args"/> must be an empty
///		array or null.</param>
/// <returns>
///		An instance that implements <typeparamref name="TInterface"/>.
/// </returns>
Creates a provider instance that implements .
Creates a provider instance that implements .
public TInterface CreateInstance<TInterfaceSettingsElement, TInterface>(
			AppDomain appDomain,
			TInterfaceSettingsElement settings,
			params object[] args
		)
			where TInterfaceSettingsElement : ProviderElement, new()
			where TInterface : class
		{
			return AbstractProvider<TInterfaceSettingsElement, TRequestContext>.CreateInstance<TInterface>(
				appDomain,
				settings,
				args
			);
		}
public TInterface CreateInstance < TInterfaceSettingsElement , TInterface > ( AppDomain appDomain , TInterfaceSettingsElement settings , params object [ ] args ) where TInterfaceSettingsElement : ProviderElement , new ( ) where TInterface : class { return AbstractProvider < TInterfaceSettingsElement , TRequestContext > . CreateInstance < TInterface > ( appDomain , settings , args ) ; }
Creates a provider instance that implements .
Creates a provider instance that implements .
An instance that implements .
An instance that implements .
appDomain
AppDomain
The  to instantiate the provider in, or
null.
The to instantiate the provider in or null .
settings
TInterfaceSettingsElement
None
args
The arguments to pass to the constructor. This array of arguments
must match in number, order, and type the parameters of the constructor to invoke.
If the default constructor is preferred,  must be an empty
array or null.
The arguments to pass to the constructor . This array of arguments must match in number order and type the parameters of the constructor to invoke . If the default constructor is preferred must be an empty array or null .
typeparam
The settings element type.
The settings element type .
typeparam
The interface type.
The interface type .