divyang4481 / accord

Automatically exported from code.google.com/p/accord
0 stars 0 forks source link

codification.cs public int[] Translate(params string[] data) #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
Thanks for reporting the issue. It has been fixed on v2.7.1

Original comment by cesarso...@gmail.com on 1 Sep 2012 at 9:45