Exemplo n.º 1
0
        static void Main(string[] args)
        {
            SymbolList list = new SymbolList();
            list.LoadDefaultSymbols();
            var symbol = String.Empty;

            while (true)
            {
                Console.Write("Bitte Symbol eingeben: ");
                symbol = Console.ReadLine();

                if (String.IsNullOrEmpty(symbol))
                    break;

                Console.Write("Mit Linq");
                Test(() => list.FindMatchingSymbolLinq(symbol));
                Console.Write("Ohne Linq");
                Test(() => list.FindMatchingSymbolFixed(symbol));
            }
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            SymbolList list = new SymbolList();

            list.LoadDefaultSymbols();
            var symbol = String.Empty;

            while (true)
            {
                Console.Write("Bitte Symbol eingeben: ");
                symbol = Console.ReadLine();

                if (String.IsNullOrEmpty(symbol))
                {
                    break;
                }

                Console.Write("Mit Linq");
                Test(() => list.FindMatchingSymbolLinq(symbol));
                Console.Write("Ohne Linq");
                Test(() => list.FindMatchingSymbolFixed(symbol));
            }
        }