Comparing one 2D and one 1D array in C#?
<p>I just want to write code for comparing a 1D array with a 2D array... I am working on writing a compiler and want to compare a 1D array which contains my code and other 2D array in which I have made a symbol table.
I have written code, but it's not working.</p>

<pre><code>for (int x = 0; x &lt; symboltable1.Length; x++)
{
    for (int y = 0; y &lt; symboltable1.Length; y++)
    {
        for (int z = 0; z &lt; text.Length; z++)
        {
            if (symboltable1[x,y] == text[z])
                listBox2.Items.Add(text[z]);
            else
                MessageBox.Show("poor");
        }
    }
}
</code></pre>
