Use this type to have access to the bitwise operators of C# enums that have a cs.system.FlagsAttribute
attribute.
Usage example:
import cs.system.reflection.BindingFlags;
var binding = new Flags(BindingFlags.Public) | BindingFlags.Static | BindingFlags.NonPublic;
Methods
inlineadd(flags:Flags<T>):Flags<T>
Accessible through the bitwise OR operator (` | ). Returns a new Flags` type with the flags |
---|
passed at flags
added to it.
inlinebitAnd(flags:Flags<T>):Flags<T>
Accessible through the bitwise AND operator (&
). Returns a new Flags
type with
the flags that are set on both this
and flags