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