Example #1
0
        public static int Count <T>(this IComposite <T> composite)
        {
            var total = 0;

            composite.Each(t => total++, TreeTraversalStrategy.PostOrderDepthFirst); // strategy doesn't matter
            return(total);
        }