'How can you choose a line that fulfills all the conditions?

How do we know the number of common values between two lines from two different tables? using csharp.

table1.row[1]={5,6,3,4,1}

 table2.row[3]={6,4,16,18,7,'2'}

// table2.row[3][5] is char mean number of duplicate value must be to return true (i make it char because i dont want program use this value whenthey do comparison)//

in this two table the funcion need to return true because we have two duplicate number and its the same value given by user in table2.row[3][5]



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source