public IEnumerable <T> GetBy <T, TU>(string key, Expression <Func <T, TU> > e)
 {
     if (items.TryGetValue(typeof(T), out Box b))
     {
         var member = MemberResolver.GetMember(e) as PropertyInfo;
         foreach (var item in b.GetBy <T>(key, member))
         {
             yield return(item);
         }
     }
 }
Example #2
0
        protected override ValueReference GetMember(EvaluationContext ctx, object t, object co, string name)
        {
            var resolver = new MemberResolver();

            return(resolver.GetMember(ctx, null, t, co, name));
        }