Dictionary<string, object> events = new Dictionary<string, object>(); //where object would have to inherit EventListener
interface I {}; class a : I {}; class b : I {}; class c {}; void Main() { Dictionary<string, I> x = new Dictionary<string, I>(); x.Add("a", new a()); x.Add("b", new b()); x.Add("c", new c()); //will fail }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)