static void Main(string[] args) { var coll = new StateCollection(); var state = new SomeState(); coll.AddState(state); Console.ReadKey(); }