8 references to AllowNumbers
System.Text.Json (8)
System\Text\Json\Serialization\Converters\Value\EnumConverter.cs (3)
113case JsonTokenType.Number when (_converterOptions & EnumConverterOptions.AllowNumbers) != 0: 166if ((converterOptions & EnumConverterOptions.AllowNumbers) == 0) 267if ((_converterOptions & EnumConverterOptions.AllowNumbers) != 0)
System\Text\Json\Serialization\Converters\Value\EnumConverterFactory.cs (1)
25return Create(type, EnumConverterOptions.AllowNumbers, namingPolicy: null, options);
System\Text\Json\Serialization\JsonNumberEnumConverter.cs (1)
36return 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)
290return EnumConverterFactory.Helpers.Create<T>(EnumConverterOptions.AllowNumbers, options);