Ok, so I have two elements:
class Full
{
public string FullId {get; set;}
public List<string> Tapes {get; set;}
}
and
class OptSet
{
public string SetId {get; set;}
public list<string> Tapes2 {get; set;}
}
I need to select a Full
which list of Tapes
contains all elements from OptSet
list of Tapes2
.
I need to do it in Linq. I've tried
Full currFull = inputFull.Where(f =>
f.Tapes.Contains(OptSet.Tapes2.ToString())).FirstOrDefault();
but this results in null.