Esempio n. 1
0
        public static int[] strToIntArr(string list)
        {
            XmlFormating _format = new XmlFormating();

            string[]   items    = ToolString.trim(ToolString.explodeList(list));
            List <int> valsList = new List <int>();

            foreach (string itm in items)
            {
                if (itm != string.Empty)
                {
                    object obj = _format.parse(itm, typeof(int));
                    if (obj != null)
                    {
                        valsList.Add((int)obj);
                    }
                }
            }
            return(valsList.ToArray());
        }
Esempio n. 2
0
 public static string[] explodeListLogical(string str)
 {
     return(ToolString.removeEmpty(ToolString.trim(ToolString.explodeList(str))));
 }