Exemple #1
0
        public static IDList <int> ParseIntValues(String values)
        {
            IDList <int> OResult = new IDList <int>();

            foreach (String OValue in values.Split(','))
            {
                int OIntValue;
                if (int.TryParse(OValue.Trim(), out OIntValue))
                {
                    OResult.Append(OIntValue);
                }
            }
            return(OResult);
        }
Exemple #2
0
        public static IDList <long> ParseLongValues(String values)
        {
            IDList <long> OResult = new IDList <long>();

            foreach (String OValue in values.Split(','))
            {
                long OLongValue;
                if (long.TryParse(OValue.Trim(), out OLongValue))
                {
                    OResult.Append(OLongValue);
                }
            }
            return(OResult);
        }