Exemple #1
0
        static void Main(string[] args)
        {
            var testList = new List <object>()
            {
                1, 2, "a", "b"
            };

            foreach (int i in ListFilterer.GetIntegersFromList(testList))
            {
                Console.WriteLine(i);
            }
        }
Exemple #2
0
        static void Main(string[] args)
        {
            var number = ListFilterer.GetIntegersFromList(new List <object>()
            {
                1, 2, "a", "b", 0, 15
            });

            foreach (var item in number)
            {
                Console.WriteLine(item);
            }

            Console.WriteLine("Hello World!");
        }