コード例 #1
0
        internal static void IsDecorator(Container container, Type serviceType, Type decoratorType,
                                         string paramName)
        {
            ConstructorInfo decoratorConstructor =
                container.Options.SelectConstructor(serviceType, decoratorType);

            Requires.DecoratesServiceType(serviceType, decoratorConstructor, paramName);
            Requires.DecoratesBaseTypes(serviceType, decoratorConstructor, paramName);
        }