Extension Method

Parameterized SQL WHERE IN clause c#

If you are using some legacy SQL in C# you’ll occasionally need to write a WHERE IN. Yon don’t want to end up writing something like the below, either directly or through some sort of loop.