What I want to do is compare an index with a complete array (with all its indices). This means that I will need to know if the index of my first array is at any of the indexes of the second array.
Example:
if (AduanaOriginal[0] == registro && PatenteOriginal[0] == registro && PedimentoOriginal[0] == registro)
{
}
This is done in order to know if the index of the first array exists in any of the indices of the second array.
This can be solved with Linq .
You add Using System.Linq; at the beginning of the file and then modify your condition:
Or if what you want is to search within the registry array for the value of the other indices, do this:
you need the function
contains
Ex: