I am wondering if there is a way to compare an integer variable to a list of integers in if statement as we can do it in SQL WHERE CLAUSE,
WHERE MY_ID IN (1,2,3,4,5,6)
and I want to use the same functionality if it exists in c#
if(myid in (1,2,3,4,5,6)){}
this might seem a dummy question but it would save me a lot of time if existed