WebApi HttpClient help getting collection (version .6)
I am having trouble getting my collection filled in the below example.  I am able to get a json string of the 3 people, but if I try and get a custom collection filled, the collection has a count = 0.

	HttpClient client = new HttpClient();

	client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));

	client.BaseAddress = new Uri("http://localhost:7500/Wcf1.svc/People");

	HttpResponseMessage resp = client.GetAsync("").Result;

	string jsonString = resp.Content.ReadAsStringAsync().Result;

	List<Person> personCollection = resp.Content.ReadAsAsync<List<Person>>().Result;

jsonString has 3 people in it.
personCollection has a count = 0.

I must be doing something wrong, please point out my error if you can.

Thanks.
Terrence
WebApi HttpClient help getting collection (version .6)
===

I am having trouble getting my collection filled in the below example.  I am able to get a json string of the 3 people, but if I try and get a custom collection filled, the collection has a count = 0.

	HttpClient client = new HttpClient();

	client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));

	client.BaseAddress = new Uri("http://localhost:7500/Wcf1.svc/People");

	HttpResponseMessage resp = client.GetAsync("").Result;

	string jsonString = resp.Content.ReadAsStringAsync().Result;

	List<Person> personCollection = resp.Content.ReadAsAsync<List<Person>>().Result;

jsonString has 3 people in it.
personCollection has a count = 0.

I must be doing something wrong, please point out my error if you can.

Thanks.
Terrence