Beispiel #1
0
        public static object Open(object input, Action <ObjectReflector> workAction)
        {
            ObjectReflector manipulator = new ObjectReflector();

            manipulator.Slot(input);
            workAction(manipulator);
            return(manipulator.Retrieve());
        }
Beispiel #2
0
        public static object Build(Type input, Action <ObjectReflector> workAction)
        {
            ObjectReflector manipulator = new ObjectReflector();
            var             target      = Activator.CreateInstance(input);

            manipulator.Slot(target);
            workAction(manipulator);
            return(manipulator.Retrieve());
        }