public Deserializer(BDM_File _bdmFile) { bdm_File = _bdmFile; bdm_File.SortEntries(); type = GetBdmType(); Validation(); WriteFile(); }
public Deserializer(BDM_File _bdmFile, string location) { saveLocation = location; bdm_File = _bdmFile; bdm_File.SortEntries(); type = GetBdmType(); Validation(); WriteFile(); SaveBinaryFile(); }
void ReadXmlFile(string path) { YAXSerializer serializer = new YAXSerializer(typeof(BDM_File), YAXSerializationOptions.DontSerializeNullObjects); bdm_File = (BDM_File)serializer.DeserializeFromFile(path); }