Exemplo n.º 1
0
        public Deserializer(string location, EMM_File _emmFile)
        {
            saveLocation = location;
            emmFile      = _emmFile;

            Write();
            File.WriteAllBytes(saveLocation, bytes.ToArray());
        }
Exemplo n.º 2
0
        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());
        }
Exemplo n.º 3
0
 public Deserializer(EMM_File _emmFile)
 {
     emmFile = _emmFile;
     Write();
 }