I got this error when I tried to run the good which gives and object reference not to an instance of an object
this is the code
- string responseString = reader.ReadToEnd();
- dynamic jsonData = JsonConvert.DeserializeObject(responseString);
- var results = new List
(); - foreach (var item in jsonData.items)
- {
- results.Add(new Result
- {
- Title = item.title,
- Link = item.link,
- Snippet = item.snippet,
- });
- }
please kindly help
Guest UserPosted Oct 17, 2019, 6:49 AM
Joma AlrziniPosted Oct 16, 2019, 8:17 AM
Guest UserPosted Oct 16, 2019, 8:11 AM
Joma AlrziniPosted Oct 16, 2019, 6:53 AM
Guest UserPosted Oct 16, 2019, 6:47 AM