Lambda doubt in one type

-2

How do I make a lambda to bring only records containing the word Transfer? For example, in my example, there are 19 records, but 3 are not Transfers, so it should be 16. Below my code and my wrong lambda.

OfferV2[] traslado = ((OfferV2[])SessaoUtil.Recuperar("MontaTraslado"));

                traslado = traslado.Where(x => x.).Contains("Traslado");
    
asked by anonymous 14.04.2014 / 18:17

1 answer

4

Should be something like:

var traslado = ((OfferV2[])SessaoUtil.Recuperar("MontaTraslado"))
    .Where(x => x.ProductName.Contains("Traslado"))
    .ToArray();
    
14.04.2014 / 18:27