public static VisualInfo Deserialize(string visualState) { if (string.IsNullOrEmpty(visualState)) { return(null); } VisualInfo res = null; SerializationHelper.DeserializeFromString(visualState, x => res = (VisualInfo) new XmlSerializer(typeof(VisualInfo)).Deserialize(x)); return(res); }
public static string Serialize(VisualInfo visualState) { return(SerializationHelper.SerializeToString(x => new XmlSerializer(typeof(VisualInfo)).Serialize(x, visualState))); }