I get a custom list from a webservice, I need to convert the custom list in a custom list created on the client.
I get the value of the webservice like this:
List<object> list = ((IList<object>)service.EventosDoDia()).ToList();
Now I need to put the value of the list in my custom list,
List<Evento>
How do I transform my object in this list?
Class Eventos
public class Eventos
{
public string id { get; set; }
public string logo { get; set; }
public string data { get; set; }
public string texto { get; set; }
public string comentarios { get; set; }
}
see the print debug, look at the values that I have in my list http://i50.tinypic.com/14mt1ti.png
objectlooks like?EventosDoDia()should return a IQueryable ofEventoswho fulfil the condition they happened this day