Пример #1
0
 private object convertJArrayToType(JArray ja, Type t)
 {
     MethodInfo mi = ja.GetType().GetMethod("ToObject", new Type[] { });
     MethodInfo gmi = mi.MakeGenericMethod(t);
     return gmi.Invoke(ja, new object[] { });
 }