コード例 #1
0
        public static void Main()
        {
            TextProcessorsCache.GetInstance <TextProcessor1>();
            TextProcessorsCache.GetInstance <TextProcessor2>();
            TextProcessorsCache.GetInstance <TextProcessor1>();    // this should not write to the console
            TextProcessorsCache.GetInstance <TextProcessor2>();    // this should not write to the console

            Console.ReadLine();
        }
コード例 #2
0
        public static void Main()
        {
            TextProcessorsCache.GetInstance <TextProcessor1>();
            TextProcessorsCache.GetInstance <TextProcessor2>();
            TextProcessorsCache.GetInstance <TextProcessor1>();
            TextProcessorsCache.GetInstance <TextProcessor2>();

            Console.ReadLine();
        }