Note
The enumerator of the returned collection does not support the IEnumerator.Reset method.
public static IEnumerable<TEnum> GetFlags(
TEnum flags,
bool onlyDefinedValues = false
)
Public Shared Function GetFlags (
flags As TEnum,
Optional onlyDefinedValues As Boolean = false
) As IEnumerable(Of TEnum)
public:
static IEnumerable<TEnum>^ GetFlags(
TEnum flags,
bool onlyDefinedValues = false
)
static member GetFlags :
flags : 'TEnum *
?onlyDefinedValues : bool
(* Defaults:
let _onlyDefinedValues = defaultArg onlyDefinedValues false
*)
-> IEnumerable<'TEnum>