Пример #1
0
        public override ReflectedObject BuildConfigurationFromAssemblies(Assembly[] assemblies)
        {
            ArgumentUtility.CheckNotNull("assemblies", assemblies);

            var declarativeConfigurationBuilderType = RemotionAssembly.GetType("Remotion.Mixins.Context.DeclarativeConfigurationBuilder", true);

            return(ReflectedObject.CallMethod(declarativeConfigurationBuilderType, "BuildConfigurationFromAssemblies", new object[] { assemblies }));
        }
Пример #2
0
        public override ReflectedObject GetTargetClassDefinition(Type targetType, ReflectedObject mixinConfiguration, ReflectedObject classContext)
        {
            ArgumentUtility.CheckNotNull("targetType", targetType);
            ArgumentUtility.CheckNotNull("mixinConfiguration", mixinConfiguration);

            var targetClassDefinitionUtilityType = RemotionAssembly.GetType("Remotion.Mixins.TargetClassDefinitionUtility", true);

            return(ReflectedObject.CallMethod(targetClassDefinitionUtilityType, "GetConfiguration", targetType, mixinConfiguration));
        }