Example #1
0
 object DeserializeOmi(string name)
 {
     using (var source = File.OpenRead(@"res-tex\" + name + ".tex"))
         return(FormatterOmi.Read(source));
 }
Example #2
0
 void SerializeOmi(string name, object value)
 {
     using (var dest = File.OpenWrite(@"res-tex\" + name + ".tex"))
         FormatterOmi.Write(dest, value as object[]);
 }