示例#1
0
        /// <summary>
        ///     Adds the type of the interface to.
        /// </summary>
        /// <param name="interface">The @interface.</param>
        /// <param name="type">The type.</param>
        public void AddInterfaceToType(Type @interface, Type type)
        {
            if (@interface == null)
            {
                return;
            }

            if (@interface.IsSimpleType())
            {
                return;
            }

            if (_typesRepository.Exist(@interface))
            {
                return;
            }

            _typesRepository.AddPair(@interface, type);
        }