Q:

C# possible to compare string[] to 4 other string[]?

I've been looking around for a while now for some answers, but I cant find it anywhere.
I need a solution for this in C#:
if (stringer[1] == stringer[2]||stringer[3]||stringer[4]||stringer[5])
{

}

this obviously doesn't work in C#, so I need a way to do this.
thank you!

A:

Try this:
if (stringer.Skip(1).Any(v => v.Equals(stringer[0])) {
    ...
}

This code compares every item in the stringer array from the second on to the initial item, returning true if the initial item is duplicated anywhere else in the array.

