c# - Determine if list of strings is in another list of strings -
i have 2
list<string> l1 = {"one", "two","three","four"} l2 = {"one", "three"}
i want know if of l2 inside l1 bool?
var allin = !l2.except(l1).any();
i have 2
list<string> l1 = {"one", "two","three","four"} l2 = {"one", "three"}
i want know if of l2 inside l1 bool?
var allin = !l2.except(l1).any();
Comments
Post a Comment