i have a list of objects(1) with a list of another objects(2) inside. i want to select some objects(1) from the first list with some king of a .where looking in the other list(2).
my classes are something like that:
class objects(1)
{
public int Id { set; get;}
List<Objects(2)> Objects(2) { set; get;}
}
class objects(2)
{
public int Id { set; get;}
DateTime? Date { set; get;}
}
so i want to select all Objects(1) where List Objects(2) { set; get;} all the values in the list has DateTime? Date != null.