Comparing array values with each other
I want to compare two integer arrays and then print the equals out. I tried the Intersect method:
var checkingDuplicates = boughttickets.Intersect(winningtickets).Any();
and then used a if-statement:
if (checkingDuplicates == false)
Console.WriteLine("Sorry, You didn't win anything");
However, the output always returns true with this if-statement.