static void Main(string[] args)
        {
            //IRobot robot = new Robot();
            //IRobot robot = new Krzysztof();
            IRobot robot = Mapper.Map(ConfigurationManager.AppSettings["class"]);

            //IRobot robot = Mapper.Map<IRobot>("IRobot");
            //IRobot robot = Mapper.Map<IRobot>();
            //IRobot robot = Mapper.Map<IRobot, Krzysztof>();
            Console.WriteLine(robot.Clean());
            Console.Read();
        }
Exemple #2
0
        static void Main(string[] args)
        {
            //IRobot robot = new Robot();
            //IRobot kasia = new Kasia();
            //IRobot kasia = Mapper.Map(ConfigurationManager.AppSettings["class"]);
            //Console.WriteLine(robot.Clean());
            //Console.WriteLine(kasia.GetType().ToString());
            //IRobot robot = Mapper.Map<IRobot>("Irobot");
            IRobot robot = Mapper.Map <IRobot, Kasia>();

            Console.WriteLine(robot.Clean());
            Console.Read();
        }