private IEnumerable YieldResolve() { Array resolved = Array.CreateInstance(_requestType, _resolutions.Count); for (int i = 0; i < _resolutions.Count; i++) { IDependencyResolution resolution = _resolutions[i]; resolved.SetValue(resolution.Resolve(), i); } return(resolved); }
public Expression CreateExpression() { return(Expression.Constant(_resolution.Resolve())); }
public object Resolve() => _resolution.Resolve();