Dear all, How i match 2 array and keep the matched value into a new array using c#?
for (int j = 0; j < arrayA.Length; j++)
{
for (int k = 0; k < arrayB.Length; k++)
{
if (arrayA[j] == arrayB[k])
{
arrayB[k];
//How i keep this matched record into a new array?
}
}
}
Another thing: Is their any short cut way to match 2 array and keep the record into a new array? Any kind heart. Please help.