All pastes #2128004 Raw Edit

Anonymous

public text v1 · immutable
#2128004 ·published 2012-03-14 03:29 UTC
rendered paste body
        /// <summary>
        /// Returns an array of ints from a string of values
        /// </summary>
        /// <param name="count">The amount of values to parse</param>
        /// <param name="values">The values we're parsing</param>
        /// <param name="pos">What position we are at</param>
        /// <returns></returns>
        static public int[] GetInts(int count, List<string> values, int pos)
        {
            int[] ints = new int[count];
             for (int i = 0; i > count; i++)
             {
                 ints[i] = int.Parse(values[pos].Trim());
                 pos++;
             }
            return ints;
        }