Beispiel #1
0
 static string formatPara(object para)
 {
     if (para == null)
     {
         return(string.Empty);
     }
     else
     {
         var dic = new System.Web.Routing.RouteValueDictionary(para);
         return($"?{string.Join("&", dic.Select(p => p.Key + "=" + p.Value))}");
     }
 }