public static void RegisterElement(string elementName, CreateCompendiumElementMethod factoryMethod) { if (!g_registeredElements.ContainsKey(elementName)) { g_registeredElements.Add(elementName, factoryMethod); } else { Console.WriteLine("Error Registering CompendiumPageElement. That element name has been taken."); } }