using System ; using System . Collections . Specialized ; using System . Web ; namespace ExcelTest3 { class Program { static void Main ( string [] args ) { var collection = QueryCollection (); var wx = collection [ "wx_fmt" ]; var wx1 = col
using System;
using System.Collections.Specialized;
using System.Web;
namespace ExcelTest3
{
class Program
{
static void Main(string[] args)
{
var collection= QueryCollection();
var wx = collection["wx_fmt"];
var wx1 = collection.GetValues("wx_fmt")[0];
Console.WriteLine("Hello World!");
}
public static NameValueCollection QueryCollection()
{
var str2 = "https://mmbiz.qpic.cn/mmbiz_jpg/sa2b5Z6x6OCoKQqBB3SAwcyJgN9CTREkiaa885U4QJLs2QwbOHicFzJE7J0zWndWC5ibk6tWCdpJjloL7iab5TGVLg/0?wx_fmt=jpeg";
var uir = new Uri(str2);
var sss = uir.Query;
var collection = HttpUtility.ParseQueryString(sss);
return collection;
}
}
}