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(); }
public static void Main() { TextProcessorsCache.GetInstance <TextProcessor1>(); TextProcessorsCache.GetInstance <TextProcessor2>(); TextProcessorsCache.GetInstance <TextProcessor1>(); TextProcessorsCache.GetInstance <TextProcessor2>(); Console.ReadLine(); }