src/Topelab.Core.Resolver/Entities/ResolveInfoCollection.cs
/// <summary>
/// Add types from, to, and optionally, constructor param types for type <typeparamref name="TTo"/>
/// </summary>
/// <typeparam name="TFrom">Type from (Interface)</typeparam>
/// <typeparam name="TTo">Type to (Implementation)</typeparam>
/// <param name="key">Key to resolve</param>
/// <param name="constructorParamTypes">Constructor param types</param>
Add types from, to, and optionally, constructor param types for type
Add types from to and optionally constructor param types for type
public ResolveInfoCollection Add<TFrom, TTo>(string key, params Type[] constructorParamTypes)
        {
            Add(new ResolveInfo(typeof(TFrom), typeof(TTo), ResolveModeEnum.None, ResolveLifeCycleEnum.Transient, key, constructorParamTypes));
            return this;
        }
public ResolveInfoCollection Add < TFrom , TTo > ( string key , params Type [ ] constructorParamTypes ) { Add ( new ResolveInfo ( typeof ( TFrom ) , typeof ( TTo ) , ResolveModeEnum . None , ResolveLifeCycleEnum . Transient , key , constructorParamTypes ) ) ; return this ; }
Add types from, to, and optionally, constructor param types for type
Add types from to and optionally constructor param types for type
key
string
Key to resolve
Key to resolve
constructorParamTypes
Constructor param types
Constructor param types
typeparam
Type from (Interface)
Type from ( Interface )
typeparam
Type to (Implementation)
Type to ( Implementation )