public Deserializer(IDB_File _idbFile, string _saveLocation) { saveLocation = _saveLocation; idbFile = _idbFile; Validation(); Write(); File.WriteAllBytes(this.saveLocation, bytes.ToArray()); }
public Deserializer(string location) { saveLocation = String.Format("{0}/{1}", Path.GetDirectoryName(location), Path.GetFileNameWithoutExtension(location)); YAXSerializer serializer = new YAXSerializer(typeof(IDB_File), YAXSerializationOptions.DontSerializeNullObjects); idbFile = (IDB_File)serializer.DeserializeFromFile(location); Validation(); Write(); File.WriteAllBytes(saveLocation, bytes.ToArray()); }
public Parser(byte[] _bytes) { rawBytes = _bytes; bytes = rawBytes.ToList(); if (bytes != null) { Parse(); } else { idbFile = null; } }
public Deserializer(IDB_File _idbFile) { idbFile = _idbFile; Validation(); Write(); }