Aaron Feng posted recently on “The death of if-else, if, and else”. In the post Aaron rewrote some JavaScript conditional checks using a dispatch table type approach. Following along with Aaron’s post using C#, we’d start with a list of Channel objects: var channels = new List<Channel>
{
new Channel { Number = 2,
Station = "NBC",
ShowTitle = "Saturday...