Esempio n. 1
0
        public Deserializer(string location)
        {
            saveLocation = String.Format("{0}/{1}", Path.GetDirectoryName(location), Path.GetFileNameWithoutExtension(location));
            YAXSerializer serializer = new YAXSerializer(typeof(BAS_File), YAXSerializationOptions.DontSerializeNullObjects);

            basFile = (BAS_File)serializer.DeserializeFromFile(location);

            WriteBas();
            File.WriteAllBytes(saveLocation, bytes.ToArray());
        }
Esempio n. 2
0
 public Deserializer(BAS_File _basFile, string path)
 {
     basFile = _basFile;
     WriteBas();
     File.WriteAllBytes(path, bytes.ToArray());
 }
Esempio n. 3
0
 public Deserializer(BAS_File _basFile)
 {
     basFile = _basFile;
     WriteBas();
 }