public Deserializer(ERS_File _ersFile, string location) { saveLocation = location; ers_File = _ersFile; Validation(); WriteBinaryErsFile(); File.WriteAllBytes(saveLocation, bytes.ToArray()); }
void ReadXmlFile(string path) { YAXSerializer serializer = new YAXSerializer(typeof(ERS_File), YAXSerializationOptions.DontSerializeNullObjects); ers_File = (ERS_File)serializer.DeserializeFromFile(path); }
public Deserializer(ERS_File _ersFile) { ers_File = _ersFile; Validation(); WriteBinaryErsFile(); }