Quick Tip: Comparing a .NET string to multiple values

The Problem Do you ever wish you could use the SQL IN operator in your C# code to make your conditional blocks more concise and your code easier to read? Perhaps it’s just my persnickety nature, but I believe that line-wrapped conditional expressions like this are a code smell. This would be so much cleaner… [...]

Follow

Get every new post delivered to your Inbox.