예제 #1
0
        /// <inheritdoc />
        public override void DoParse(string input)
        {
            base.DoParse(input);
            string[] runnersArray = Runners.Split(_runnerSeparator);
            for (int index = 0; index < runnersArray.Length; index++)
            {
                var runner = int.Parse(runnersArray[index]);
                if (RunnersList.Contains(runner))
                {
                    IsSuccess = false;
                    return;
                }

                RunnersList.Add(runner);
                IsSuccess = true;
            }
        }