예제 #1
0
 public IEnumerable <IResolutionContext <T> > All <T>(IToken <T> token)
 => rootContext.GetFromTree(token).Cast <IResolutionContext <T> >();
 public IEnumerable <TItem> GetValue(IResolutionContext context)
 {
     return(context.GetFromTree(Token)
            .Cast <IResolutionContext <TItem> >()
            .Select(x => x.Value));
 }