7,657
社区成员
发帖
与我相关
我的任务
分享
private void getWebClientResponse()
{
WebClient wc = new WebClient();
wc.OpenReadCompleted += (o, arg) =>
{
using (Stream stream = arg.Result)
{
using (StreamReader reader = new StreamReader(stream, Encoding.GetEncoding("gb2312")))
{
string result = reader.ReadToEnd();
Dispatcher.BeginInvoke(() => { this.jsonStr.Text = result; });
}
}
};
wc.OpenReadAsync(new Uri("http://www.360che.com"));
}