Ejemplo n.º 1
0
            private static int Aggregate002()
            {
                var q = from x in new[] { "!@#$%^", "C", "AAA", "", "Calling Twice", "SoS", String.Empty }
                where !String.IsNullOrEmpty(x)
                select x;

                var rst1 = q.Aggregate(Accumulate);
                var rst2 = q.Aggregate(Accumulate);

                return(Verification.Allequal(rst1, rst2));
            }