12. 相等操作符—【LINQ标准查询操作符】

public class SequenceEqual_LINQ
    {
        public static void SequenceEqual_Print()
        {
            int[] numbers1 = { 1, 2, 3, 4, 5, 4, 5 };
            int[] numbers2 = { 1, 2, 3, 4, 5, 4, 5 };
            int[] numbers3 = { 1, 2, 3, 4, 5 };

            Console.WriteLine(numbers1.SequenceEqual(numbers2));
            Console.WriteLine(numbers1.SequenceEqual(numbers3));
        }
    }
posted @ 2010-04-17 22:07  CityWalker  阅读(190)  评论(0编辑  收藏  举报
天天来