예제 #1
0
        public Deserializer(string location, EMM_File _emmFile)
        {
            saveLocation = location;
            emmFile      = _emmFile;

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