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