/// <summary>
 /// 获取城市列表
 /// </summary>
 /// <param name="province">省份的省份代码。</param>
 /// <param name="capital">城市的首字母,a-z,可为空代表返回全部,默认为全部。</param>
 /// <returns></returns>
 public dynamic GetCity(string province, string capital = "")
 {
     return(DynamicJson.Parse(api.GetCity(province, capital)));
 }
Example #2
0
 /// <summary>
 ///     获取城市列表
 /// </summary>
 /// <param name="province">省份的省份代码。</param>
 /// <param name="capital">城市的首字母,a-z,可为空代表返回全部,默认为全部。</param>
 /// <returns></returns>
 public Dictionary <string, string> GetCity(string province, string capital = "")
 {
     return(Utility.GetDictionaryFromJSON(api.GetCity(province, capital)));
 }