I'm trying to check if an enum option is contained in the available options. Its a little bit difficult for me to explain it in english. Here's the code:
public enum Fruits
{
Apple,
Orange,
Grape,
Ananas,
Banana
}
var available = Fruits.Apple | Fruits.Orange | Fruits.Banana;
var me = Fruits.Orange;
I'm trying to check if the me varliable is contained in the available variable. I know it can be done because it's used with the RegexOptions too.