I create an simple example for search one array in another--
using System;
using System.Linq;
namespace ArrayComparison
{
class Program
{
static void Main(string[] args)
{
string[] A = { "a", "x", "ab", "z", "c", "d" };
string[] B = { "a", "ab", "c", "xz", "d" };
foreach (var x in A)
{
if(B.Contains(x))
{
Console.WriteLine(x);
}
}
Console.ReadLine();
}
}
}
But you mentioned that "
Quote:
also with combination of elements in A.
"
So could you please explain this in more detail so I could create accordingly.