You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using System;using System.Linq;using System.Collections.Generic;using DryIoc;publicclassProgram{publicstaticvoidMain(){varc=new Container();
c.Register<IMany,A>(setup: Setup.With(metadataOrFuncOfMetadata: MetaKey.X));
c.Register<IMany,B>();
c.Register<IMany,C>(setup: Setup.With(metadataOrFuncOfMetadata: MetaKey.X));varms1= c.Resolve<IList<Meta<IMany,MetaKey>>>();varms2= c.ResolveMany<Meta<IMany,MetaKey>>().ToList();
Console.WriteLine(ms1.Count +" vs "+ ms2.Count);}publicinterfaceIMany{}publicclassA:IMany{}publicclassB:IMany{}publicclassC:IMany{}publicenumMetaKey{X}}
The text was updated successfully, but these errors were encountered:
dadhi
changed the title
ResolveMany with Meta does not work but collection with Meta does work
ResolveMany with Meta does NOT work but collection with Meta does work
Mar 29, 2019
The live example and the code:
The text was updated successfully, but these errors were encountered: