Hello,
Is there some short-gand way to check if the enum type value contains
certain value?
Ie, the talk here is about Regex object:
Regex re = new Regex(@"pattern", RegexOptions.IgnoreCase |
RegexOptions.Multiline);
if ((re.Options & RegexOptions.IgnoreCase) == RegexOptions.IgnoreCase) ...
do stuff ...
This "if" expression is rather lengthy, perhaps there is some shorter way to
check wether the value contains one of the ORed enum values?
Thanks,
Pavils