need to change the indexing variable in the Translate method as follows:
public int[] Translate(params string[] data)
{
int[] result = new int[data.Length];
for (int i = 0; i < data.Length; i++)
{
for (int j = 0; j < Columns.Count; j++)
{
//Options options = this.Columns[i];
Options options = this.Columns[j]; // new index***
if (options.Mapping.TryGetValue(data[i], out result[i]))
break;
}
}
return result;
}
Thanks for sharing your project.... very helpful!
Scott
Original issue reported on code.google.com by niceguy...@yahoo.com on 21 Aug 2012 at 2:53
Original issue reported on code.google.com by
niceguy...@yahoo.com
on 21 Aug 2012 at 2:53