29 references to ConverterStrategy
System.Text.Json (29)
System\Text\Json\Nodes\JsonValueOfTPrimitive.cs (1)
21Debug.Assert(converter is { IsInternalConverter: true, ConverterStrategy: ConverterStrategy.Value });
System\Text\Json\Serialization\Converters\Collection\JsonCollectionConverter.cs (2)
18private protected sealed override ConverterStrategy GetDefaultConverterStrategy() => ConverterStrategy.Enumerable;
System\Text\Json\Serialization\Converters\Collection\JsonDictionaryConverter.cs (2)
16private protected sealed override ConverterStrategy GetDefaultConverterStrategy() => ConverterStrategy.Dictionary;
System\Text\Json\Serialization\Converters\Collection\RootLevelListConverter.cs (2)
17private protected sealed override ConverterStrategy GetDefaultConverterStrategy() => ConverterStrategy.Enumerable;
System\Text\Json\Serialization\Converters\Object\JsonObjectConverter.cs (2)
12private protected sealed override ConverterStrategy GetDefaultConverterStrategy() => ConverterStrategy.Object;
System\Text\Json\Serialization\Converters\Object\ObjectConverter.cs (2)
13private protected override ConverterStrategy GetDefaultConverterStrategy() => ConverterStrategy.Object;
System\Text\Json\Serialization\Converters\Object\ObjectDefaultConverter.cs (1)
397Debug.Assert(jsonPropertyInfo.EffectiveConverter.ConverterStrategy != ConverterStrategy.Value);
System\Text\Json\Serialization\JsonConverter.cs (5)
40internal ConverterStrategy ConverterStrategy 45CanUseDirectReadOrWrite = value == ConverterStrategy.Value && IsInternalConverter; 46RequiresReadAhead = value == ConverterStrategy.Value; 51private ConverterStrategy _converterStrategy; 57private protected abstract ConverterStrategy GetDefaultConverterStrategy();
System\Text\Json\Serialization\JsonConverterFactory.cs (2)
22private protected override ConverterStrategy GetDefaultConverterStrategy() => ConverterStrategy.None;
System\Text\Json\Serialization\JsonConverterOfT.cs (5)
53private protected override ConverterStrategy GetDefaultConverterStrategy() => ConverterStrategy.Value; 163if (ConverterStrategy == ConverterStrategy.Value) 342if (ConverterStrategy == ConverterStrategy.Value) 501Debug.Assert(isValueConverter == (ConverterStrategy == ConverterStrategy.Value));
System\Text\Json\Serialization\Metadata\JsonPropertyInfo.cs (4)
542if ((EffectiveConverter.ConverterStrategy & (ConverterStrategy.Enumerable | ConverterStrategy.Dictionary)) != 0) 703((ConverterStrategy.Enumerable | ConverterStrategy.Dictionary) & EffectiveConverter.ConverterStrategy) == 0)
System\Text\Json\Serialization\Metadata\JsonPropertyInfoOfT.cs (1)
185EffectiveConverter.ConverterStrategy != ConverterStrategy.Value &&