예제 #1
0
 /// <summary>
 /// Loads data from the save file.
 /// </summary>
 public void Load()
 {
     Clear();
     try
     {
         AddRange(JsonConvert.Deserialise <List <T> >(GetData()));
     }
     catch (Exception)
     {
     }
 }
예제 #2
0
 public void DeserialiseTest()
 {
     Assert.AreEqual(a.ToString(), JsonConvert.Deserialise <TestClass>(a.ToString()).ToString());
 }