Beispiel #1
0
 /// <summary>
 /// 获取
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <typeparam name="TResult"></typeparam>
 /// <param name="url"></param>
 /// <returns></returns>
 public static TResult Get <TResult>(string url)
 {
     return(HttpGet.GetJsonResult <TResult>(url));
 }
Beispiel #2
0
 /// <summary>
 ///
 /// </summary>
 /// <typeparam name="TResult"></typeparam>
 /// <param name="url"></param>
 /// <returns></returns>
 public static TResult Get <TResult>(string url)
     where TResult : class
 {
     return(HttpGet.GetJsonResult <TResult>(url));
 }