Ejemplo n.º 1
0
        private IList <Lazy <LazyClass> > LoadLazyObject()
        {
            Console.WriteLine(DateTime.Now);
            IList <Lazy <LazyClass> > list = LazyClass.GetProductListLazy();

            Console.WriteLine("Total products in my list: " + list.Count);
            Console.WriteLine(DateTime.Now);
            return(list);
        }