8 references to AllowNumbers
System.Text.Json (8)
System\Text\Json\Serialization\Converters\Value\EnumConverter.cs (3)
113
case JsonTokenType.Number when (_converterOptions & EnumConverterOptions.
AllowNumbers
) != 0:
166
if ((converterOptions & EnumConverterOptions.
AllowNumbers
) == 0)
267
if ((_converterOptions & EnumConverterOptions.
AllowNumbers
) != 0)
System\Text\Json\Serialization\Converters\Value\EnumConverterFactory.cs (1)
25
return Create(type, EnumConverterOptions.
AllowNumbers
, namingPolicy: null, options);
System\Text\Json\Serialization\JsonNumberEnumConverter.cs (1)
36
return EnumConverterFactory.Helpers.Create<TEnum>(EnumConverterOptions.
AllowNumbers
, options);
System\Text\Json\Serialization\JsonStringEnumConverter.cs (2)
45
? EnumConverterOptions.
AllowNumbers
| EnumConverterOptions.AllowStrings
101
? EnumConverterOptions.
AllowNumbers
| EnumConverterOptions.AllowStrings
System\Text\Json\Serialization\Metadata\JsonMetadataServices.Converters.cs (1)
290
return EnumConverterFactory.Helpers.Create<T>(EnumConverterOptions.
AllowNumbers
, options);