7 references to s_isFlagsEnum
System.Text.Json (7)
System\Text\Json\Serialization\Converters\Value\EnumConverter.cs (7)
147
Debug.Assert(
s_isFlagsEnum
, "Should only be entered by flags enums.");
207
Debug.Assert(
s_isFlagsEnum
|| dictionaryKeyPolicy != null, "Should only be entered by flags enums or dictionary key policy.");
408
s_isFlagsEnum
|| (dictionaryKeyPolicy is not null && Enum.IsDefined(typeof(T), value)),
411
if (
s_isFlagsEnum
)
463
if (
s_isFlagsEnum
)
504
if (
s_isFlagsEnum
)
577
(
s_isFlagsEnum
&& name.AsSpan().IndexOf(',') >= 0))