示例#1
0
        private static void F6()
        {
            List <int> intList = new List <int>();

            Console.WriteLine(intList.Any());
            intList.Add(1);
            Console.WriteLine(intList.Any());
            List <Class1> classList = new List <Class1>();

            Console.WriteLine(classList.Any());
            classList.Add(Class1.GetInstance());
            Console.WriteLine(classList.Any());
        }