IT's not difficult to do, but the "normal" methods to speed it up don't work - you can't use Linq because it works on unordered sets, so it has no concept of "index". But the "brute force and ignorance" approach is pretty simple anyway:
int[] myArray = { 1, 0, 0, 1, 0, 2, 0 };
int[] match = { 2, 5 };
List<int> indexes = new List<int>();
for (int i = 0; i < myArray.Length; i++)
{
if (myArray[i] == 1) indexes.Add(i);
}
if (Enumerable.SequenceEqual(indexes, match))
{
Console.WriteLine("They match");
}