Example #1
0
        public static XmlAnimationStep SerializeStep(object step)
        {
            Type type = step.GetType();

            XmlAnimationStep res = new XmlAnimationStep();

            res.StepType = type.FullName;

            res.Value = ConvertValueToString(step);

            return(res);
        }
Example #2
0
        public static object DeserializeStep(XmlAnimationStep step)
        {
            Type type = RadTypeResolver.Instance.GetTypeByName(step.StepType, true);

            return(ConvertValueFromString(type, step.Value));
        }