/// <summary> /// 获得排完序的字典 /// </summary> /// <param name="parameters"></param> /// <returns></returns> public static Dictionary<string, object> GetASCIISortDic(IDictionary<string, object> parameters) { IDictionary<string, object> sortedParams = new SortedDictionary<string, object>(parameters); IEnumerator<KeyValuePair<string, object>> dem = sortedParams.GetEnumerator(); Dictionary<string, object> res = new Dictionary<string, object>(); while (dem.MoveNext()) { res.Add(dem.Current.Key, dem.Current.Value); } return res; }