using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace Synchronization
{
    // Listing 17-16
    public class Cache<T>
    {
        private static Dictionary<string, T> _d;

        public static IDictionary<string, T> Dictionary
        {
            get
            {
                return LazyInitializer.EnsureInitialized(ref _d);
            }
        }
    }
}
