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()); }
public Deserializer(BAS_File _basFile, string path) { basFile = _basFile; WriteBas(); File.WriteAllBytes(path, bytes.ToArray()); }
public Deserializer(BAS_File _basFile) { basFile = _basFile; WriteBas(); }