The Code Page
A series of development tips and code examples by Gabriel McAdams
Nov 14

There are several posts on the various forum and question/answer sites where people are wondering if there is an 'In' method in C#.  That, or if there is another quick way to determine if a variable value is one of the values in a given list.

There are a few ways to do this now.  Many of them are tedious.  Adding extra lines of code to do something that should be very simple.