![]() | enumEnumFlagsT Method |
Namespace: WhetStone.Looping
public static IEnumerable<T> EnumFlags<T>() where T : struct, new(), IConvertible
Uses reflection to generate types.
Detecting Flags is tricky, will only return members that are bitwise distinct from all of the previous ones. This means that the elements generated are dependent on the order they are generated.
[Flags] enum Enum1 {a=1,b=2,c=3 }; @enum.EnumFlags<Enum1>();// a,b