public Deserializer(string location) { saveLocation = String.Format("{0}/{1}", Path.GetDirectoryName(location), Path.GetFileNameWithoutExtension(location)); YAXSerializer serializer = new YAXSerializer(typeof(ECF_File), YAXSerializationOptions.DontSerializeNullObjects); ecfFile = (ECF_File)serializer.DeserializeFromFile(location); Write(); }
public Deserializer(ECF_File _ecfFile) { writeToDisk = false; ecfFile = _ecfFile; Write(); }