Two string array matching in c sharp
how to check two string array matching
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Manikavelu VelayuthamRank #413 · 6K reputationPosted Sep 28, 2010, 1:02 AM EDT
vishnu krishnan103 reputationPosted Sep 28, 2010, 1:18 AM EDT
Manikavelu VelayuthamRank #413 · 6K reputationPosted Sep 28, 2010, 1:36 AM EDT
In this link you can download the source code to achieve your goal
Gomathi PalaniswamyRank #714 · 3.3K reputationPosted Sep 28, 2010, 2:25 AM EDT
By the below coding you can get unique string from array a.
string[] a = new string[] { "a","b","c","d" };
string[] b = new string[] { "a","f","c","d" };
for (int i = 0; i < a.Length ; i++)
{
for (int j = 0; j < b.Length ; j++)
{
if (i != j)
{
if (a[i] == a[j])
{
a[i] = "";
j = j + 4;
}
}
if (a[i] == b[j])
{
a[i] = "";
j = j + 4;
}
}
}
With Regards,
Gomathi.P