Note
The enumerator of the returned collection does not support the IEnumerator.Reset method.
public static IEnumerable<TEnum> GetFlags()
Public Shared Function GetFlags As IEnumerable(Of TEnum)
public:
static IEnumerable<TEnum>^ GetFlags()
static member GetFlags : unit -> IEnumerable<'TEnum>
Flag values are the ones whose binary representation contains only a single bit.
It is not checked whether TEnum is really marked by FlagsAttribute.
Flags with the same values but different names are returned only once.