I have this code:
Strutture = from Ricettivito s in Strutture
where s.ServiziAttivi.Cast<string>().Intersect(IDSServizi).Count() == IDSServizi.Count()
select s;
I need to:
- Cast ServiziAttivi (which is a list of MyService) into a list of string (which must contains MyService.UniqueID)
- Than, check if this list contains each elements of IDSServizi (which is a list of string).
But seems I cannot doint that conversion?