예제 #1
0
        public static Object[] processPath(String[] list)
        {
            if ((list == null) || (list.Length < 1))
            {
                return(null);
            }
            Object[] result = new Object[list.Length];
            int      length = list.Length / 2 * 2;

            for (int i = 0; i < length; i += 2)
            {
                result[i]       = list[i];
                result[(i + 1)] = MapWmPathInfo.create(list[(i + 1)]);
            }
            if (list.Length / 2 * 2 != list.Length)
            {
                result[(result.Length - 1)] = list[(list.Length - 1)];
            }
            return(result);
        }