public Deserializer(QSF_File _qsfFile, string location) { saveLocation = location; qsf_File = _qsfFile; WriteFile(); SaveBinaryFile(); }
public Deserializer(string location) { saveLocation = String.Format("{0}/{1}", Path.GetDirectoryName(location), Path.GetFileNameWithoutExtension(location)); YAXSerializer serializer = new YAXSerializer(typeof(QSF_File), YAXSerializationOptions.DontSerializeNullObjects); qsf_File = (QSF_File)serializer.DeserializeFromFile(location); WriteFile(); SaveBinaryFile(); }