public static XmlAnimationStep SerializeStep(object step) { Type type = step.GetType(); XmlAnimationStep res = new XmlAnimationStep(); res.StepType = type.FullName; res.Value = ConvertValueToString(step); return(res); }
public static object DeserializeStep(XmlAnimationStep step) { Type type = RadTypeResolver.Instance.GetTypeByName(step.StepType, true); return(ConvertValueFromString(type, step.Value)); }