コード例 #1
0
        public void Register(Type from, Type to)
        {
            RegisterCheck(from);

            var register = new RegisteredPair(from, to);

            _registry.Add(register);
        }
コード例 #2
0
        public void RegisterInstance(Type type, object instance)
        {
            RegisterCheck(type);

            var register = new RegisteredPair();

            register.From     = type;
            register.Instance = instance;
            _registry.Add(register);
        }