I'm trying to figure out how to check if all values match other List values.
Example:
List<string> foo = new List<string>() {"banana","apple","coconut"}
List<string> bar = new List<string>() {"banana","apple","coconut","mango", "lemon"}
if every foo list item exists in bar then return true and if at least one is not in foo list then return false. AND if Example:
List<string> foo = new List<string>() {"banana",}
List<string> bar = new List<string>() {"banana","apple","coconut","mango", "lemon"}
should return true
AND if Example:
List<string> foo = new List<string>() {"banana","melon"}
List<string> bar = new List<string>() {"banana","apple","coconut","mango", "lemon"}
should return false
AND if Example:
List<string> foo = new List<string>() {"banana","apple","coconut","mango", "lemon"}
List<string> bar = new List<string>() {"banana"}
should return false
sory for all the changes. got to do this fast :D
foocontainingappletwice butbaronly has 1 instance ofapple?