Return index by comparing two string arrays in C#
<p>Lets assume we have two string arrays</p>

<pre><code>string[] array1 = {"aa", "bb", "cc"};
string[] array2 = {"bb", "aa", "cc", "bb", "aa", "cc"};
</code></pre>

<p>now the string bb in array2 is in second position of array1 so the output should be 2</p>

<p>aa in array2 is in first position of array1 so the output should be 1</p>

<p>cc in array2 is in third position of array1 so the output should be 3</p>

<p>bb in array2 is in second position of array1 so the output should be 2</p>

<p>so on..</p>

<p>all these output index positions should be stored in an array..</p>

<p>any idea how to accomplish this in C#.net?</p>
