public Type NextViewModelType(TestViewModel currentViewModel) { var index = All.IndexOf(currentViewModel.GetType()); var nextIndex = index + 1; if (nextIndex < All.Count) return All[nextIndex]; return null; }