示例#1
0
            public void ToNewInstancesOfType(Type type)
            {
                IProvider provider = new NewInstancesProvider(type);
                IBinding  binding  = new Binding(key, provider);

                this.binding = binding;
            }
示例#2
0
 public SingleInstanceProvider(Type type)
 {
     newInstancesProvider = new NewInstancesProvider(type);
 }