Oh, and as far the bitwise or on the values from enumerations, it
seems that they're of the specific type of enumeration they are and
the | function isn't defined except for integers (I'm guessing here).
So, if you cast the type into an integer things should work fine.
Maybe there's some way to use the the function, but this is the first
thing that popped into my head. It's a little silly, but it works:
(|
(+ 0 (compiled System.Text.RegularExpressions.RegexOptions))
(+ 0 (cultureinvariant System.Text.RegularExpressions.RegexOptions))
)
The + function seems to treat them as integers just fine and return an
integer.
Ian D wrote:
> The following works:
> (Compiled System.Text.RegularExpressions.RegexOptions)
> As for "or"ing FlagAttribute enums together, that I don't know yet.
> Ian D
> On Jan 16, 7:33 pm, theZoot <nlaus...@gmail.com> wrote:
> > How does one refer to .NET enumerations such as
> > System.Text.RegularExpressions.RegexOptions?