get item from the first list of a set of generic lists

0

I receive a list of "generic lists" in C # in this way

List<WcfService.Entidades.BusquedaEmpleadosOC> datos = cliente.BusquedaEmpleadosOC(ordenCompra, NIT);

and everything goes well, I receive the desired information, the problem now is that I can receive from three lists up to 25 and I want to get the value of field # 2 of the first list, that and that specific because of business rules there an important data is saved, they could indicate me how to recover the second item of the first list (it must be the first one) in the list of lists that I receive

    
asked by Cristina Carrasco Angulo 16.04.2018 в 18:54
source

1 answer

0

I leave it in case someone serves, the answer

List<WcfService.Entidades.BusquedaEmpleadosOC> datos = cliente.BusquedaEmpleadosOC(ordenCompra, NIT);
            ViewBag.valor = datos[0].tuDato.ToString();
    
answered by 16.04.2018 в 20:04