Beispiel #1
0
        public int RunPart(GeneralRunner runner)
        {
            var code            = FileContents.Split(',');
            var numbersOriginal = new int[code.Length];

            for (int i = 0; i < code.Length; i++)
            {
                numbersOriginal[i] = ToInt32(code[i]);
            }

            return(runner(numbersOriginal));
        }
Beispiel #2
0
        public T RunPart <T>(GeneralRunner <T> runner)
        {
            var code    = FileContents.Split(',');
            var numbers = new BigInteger[code.Length];

            for (int i = 0; i < code.Length; i++)
            {
                numbers[i] = BigInteger.Parse(code[i]);
            }

            return(runner(numbers));
        }