예제 #1
0
 public Deserializer(QSF_File _qsfFile, string location)
 {
     saveLocation = location;
     qsf_File     = _qsfFile;
     WriteFile();
     SaveBinaryFile();
 }
예제 #2
0
        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();
        }