예제 #1
0
 /// <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));
 }
예제 #2
0
 /// <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));
 }