public CommandCenter() { this.list = new ListIterator(); commands = new Dictionary <string, Action <dynamic> >() { { "Create", item => this.list = ListIterator.Create(item) }, { "Move", item => Console.WriteLine(this.list.Move()) }, { "HasNext", item => Console.WriteLine(this.list.HasNext()) }, { "Print", item => this.list.Print() } }; }