Beispiel #1
0
        public CollectionBinding.CollectionBindingBuilder BindMany <T>() where T : IEnumerable
        {
            var builder = new CollectionBinding.CollectionBindingBuilder(typeof(T), BindingType.Collection, this);

            BindingBuilders.Add(builder);
            return(builder);
        }
Beispiel #2
0
        public FactoryBinding.FactoryBindingBuilder BindFactory <T>()
        {
            var builder = new FactoryBinding.FactoryBindingBuilder(typeof(T), BindingType.Factory, this);

            BindingBuilders.Add(builder);
            return(builder);
        }
Beispiel #3
0
        public DictionaryBinding.DictionaryBindingBuilder BindDictionary <T>() where T : IDictionary
        {
            var builder = new DictionaryBinding.DictionaryBindingBuilder(typeof(T), BindingType.Dictionary, this);

            BindingBuilders.Add(builder);
            return(builder);
        }
Beispiel #4
0
        public ConcreteBinding.ConcreteBindingBuilder Bind <T>()
        {
            var builder = new ConcreteBinding.ConcreteBindingBuilder(typeof(T), BindingType.Concrete, this);

            BindingBuilders.Add(builder);
            return(builder);
        }