Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public Expression CreateExpression()
 {
     return(Expression.Constant(_resolution.Resolve()));
 }
 public object Resolve() => _resolution.Resolve();