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