HttpWebRequest wReq = WebRequest.Create(url) as HttpWebRequest; string json = null; using (HttpWebResponse wResp = (HttpWebResponse)wReq.GetResponse()) { using (Stream s = wResp.GetResponseStream()) { using (TextReader tr = new StreamReader(s)) { json = tr.ReadToEnd(); var resultList = JsonConvert.DeserializeObject<Package[]>(json); PaqueteList.ItemsSource = resultList; } } }
var resultList = JsonConvert.DeserializeObject<Package[]>(json); string lname = resultList.lastname;
resultList
Package
Severity Code Description Project File Line Suppression State Error CS0656 Missing compiler required member 'Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo.Create' Login C:\Login\Login\Login\DisplayTracking.xaml.cs 69 Active
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)