hi friends,
How to write linq to find out supplied set of values exists in an array. eg:-
string[] letters = { "A", "B", "C", "D", "E", "F", "G" };
bool IsMatch =
(from n in letters where new string[] { "B", "X" }
.Contains(n) select n)
.Count() == new string[] { "B", "X" }.Count();
the above code return false and its work as expected, but i am looking for a better code.
thanks,
achu.