Distance between position in List of Ngrams
<p>I need to make a distance between the position of a element in one list with the same element in another list. </p>

<p>i´ve tried something like this</p>

<pre><code> public void out_of_place(List&lt;NgramItem&gt; Test, List&lt;NgramItem&gt; Train)
   {
       List&lt;int&gt; result = new List&lt;int&gt;();
       int indexTest = -1;
       int indexTrain = -1;

           foreach (NgramItem item in Test) {         
           indexTest = Test.IndexOf(item);
           indexTrain = Train.IndexOf(item);                 
           }
           Console.WriteLine(" Index: {0}   {1}", indexTest, indexTrain);

    }
</code></pre>

<p>public class NgramItem : IComparable 
    {
        private string ngram ;
        private int frequency ;
        // ...
    }</p>

<p>but i can not get the index of the item on the list Train. 
There is anybosy some gets i suggestion?</p>

<p>Thanks</p>
