/// <summary> /// Deserialize to <see cref="JObject" /> /// </summary> /// <param name="info">The information.</param> /// <returns>the read <see cref="JObject" /></returns> public static JObject DeserializeToJObject(this IFileInfo info) { return(JsonFileSerializer.DeserializeJObject(info)); }
/// <summary> /// Deserialize the file to T instance. /// </summary> /// <typeparam name="T">type of object to deserialize</typeparam> /// <param name="info">The information.</param> /// <returns></returns> public static T DeserializeTo <T>(this IFileInfo info) { return(JsonFileSerializer.Deserialize <T>(info)); }