Exemplo n.º 1
0
        private static void RunRules()
        {
            var sw   = Stopwatch.StartNew();
            var pwar = productCollection.ApplyRules(rules);

            sw.Stop();

            Console.WriteLine($"Executed in {sw.ElapsedMilliseconds}ms");

            var k = Console.ReadKey();

            if (k.KeyChar.Equals('r'))
            {
                RunRules();
            }
        }