Src/Black.Beard.ComponentModel/ComponentModel/TypeDiscovery.cs
/// <summary>
/// Resolve types argument and Creates an optimized factory for the specified arguments. The real type instance is the specified type
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="type">The real type instance.</param>
/// <param name="args">The arguments.</param>
/// <returns></returns>
Resolve types argument and Creates an optimized factory for the specified arguments. The real type instance is the specified type
Resolve types argument and Creates an optimized factory for the specified arguments . The real type instance is the specified type
public IFactory<T> CreateFrom<T>(Type type, params dynamic[] args)
            where T : class
        {
            var types = ObjectCreator.ResolveTypesOfArguments(args);
            var factory = ObjectCreator.GetActivatorByArguments<T>(types);
            return factory;
        }
public IFactory < T > CreateFrom < T > ( Type type , params dynamic [ ] args ) where T : class { var types = ObjectCreator . ResolveTypesOfArguments ( args ) ; var factory = ObjectCreator . GetActivatorByArguments < T > ( types ) ; return factory ; }
Resolve types argument and Creates an optimized factory for the specified arguments.
Resolve types argument and Creates an optimized factory for the specified arguments .
None
type
Type
The real type instance.
The real type instance .
args
None
typeparam
None