Пример #1
0
        static void Main5()
        {
            MyLazy <Big> myLazy = new MyLazy <Big>(() => BigFactory.Build());

            Console.WriteLine(myLazy.Value.ID);

            Console.WriteLine(myLazy.Value.ID);
        }
Пример #2
0
        static void Main3(string[] args)
        {
            Lazy <Big> lazyBig = new Lazy <Big>(() => BigFactory.Build());

            Console.WriteLine(lazyBig.Value.ID);
        }