public static Preset Deserialize(string s) { if (string.IsNullOrEmpty(s)) { return(null); } return((Preset)MySerializer.Deserialize(s, typeof(Preset))); }
public static PresetsList ToObject(string xml) { return((PresetsList)MySerializer.Deserialize(xml, typeof(PresetsList))); }