Пример #1
0
        public static IBinding BindAllAsList <TAbstraction>(this IBinder This, Assembly assembly = null)
        {
            var listBinder = new ListBinder <TAbstraction>(This);

            listBinder.BindAll(assembly);
            return(listBinder.CompositeBinding);
        }
Пример #2
0
        public static IBinding BindList <TAbstraction>(this IBinder This, Action <IListBinder <TAbstraction> > action)
        {
            var listBinder = new ListBinder <TAbstraction>(This);

            action(listBinder);
            return(listBinder.CompositeBinding);
        }