示例#1
0
        public int Add(string numbers)
        {
            List <int> ValidNumber;

            if (string.IsNullOrEmpty(numbers))
            {
                return(0);
            }
            else
            {
                numbers = RemoveCustomDelimiter(numbers);
            }
            ValidNumber = CheckForDelimeters(numbers);

            return(ValidNumber.Sum());
        }