public static InjectorFluent <T> AddPropertyInjector <T, TPropertyType>(this InjectorFluent <T> fluent, Expression <Func <T, TPropertyType> > propertyExpression, Expression <Func <TPropertyType> > setter) where T : class { InternalResolver <T> .AddPropertySetter(propertyExpression, setter); return(fluent); }
public static InjectorFluent <T> AddPropertyInjector <T, TPropertyType>(Expression <Func <T, TPropertyType> > propertyExpression) where T : class where TPropertyType : class { InternalResolver <T> .AddPropertySetter(propertyExpression); return(new InjectorFluent <T>()); }