how do i switch on an enum which have the flags attribute set (or more precisely is used for bit operations) ?
I want to be able to hit all cases in a switch that matche
Just use HasFlag
if(theCheckType.HasFlag(CheckType.Form)) DoSomething(...); if(theCheckType.HasFlag(CheckType.QueryString)) DoSomethingElse(...); if(theCheckType.HasFlag(CheckType.TempData)) DoWhatever(...);