Example #1
0
 public static Preset Deserialize(string s)
 {
     if (string.IsNullOrEmpty(s))
     {
         return(null);
     }
     return((Preset)MySerializer.Deserialize(s, typeof(Preset)));
 }
Example #2
0
 public static PresetsList ToObject(string xml)
 {
     return((PresetsList)MySerializer.Deserialize(xml, typeof(PresetsList)));
 }
Example #3
0
 public override string ToString()
 {
     return(MySerializer.Serialize(this));
 }
Example #4
0
 public string ToXml()
 {
     return(MySerializer.Serialize(this));
 }