public Deserializer(string location, EMM_File _emmFile) { saveLocation = location; emmFile = _emmFile; Write(); File.WriteAllBytes(saveLocation, bytes.ToArray()); }
public Deserializer(string location) { saveLocation = String.Format("{0}/{1}", Path.GetDirectoryName(location), Path.GetFileNameWithoutExtension(location)); YAXSerializer serializer = new YAXSerializer(typeof(EMM_File), YAXSerializationOptions.DontSerializeNullObjects); emmFile = (EMM_File)serializer.DeserializeFromFile(location); Write(); File.WriteAllBytes(saveLocation, bytes.ToArray()); }
public Deserializer(EMM_File _emmFile) { emmFile = _emmFile; Write(); }