private static void TestIndexOf <T>(GenericList <T> list, T value) where T : IComparable <T> { ConsoleMio .Format("Looking up index of {0}: ", color: Info, args: value) .WriteLine(list.IndexOf(value), color: Result) .WriteLine(); PrintList(list); ConsoleMio.PromptToContinue(color: Pause); }