1 write to Converter
System.Text.Json (1)
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (1)
46Converter = converter;
36 references to Converter
Microsoft.AspNetCore.OpenApi (2)
Schemas\OpenApiJsonSchema.Helpers.cs (2)
222var valueConverter = (JsonConverter<OpenApiJsonSchema>)options.GetTypeInfo(typeof(OpenApiJsonSchema)).Converter; 288var additionalPropsConverter = (JsonConverter<OpenApiJsonSchema>)options.GetTypeInfo(typeof(OpenApiJsonSchema)).Converter;
Shared (1)
JsonSchemaExporter\JsonSchemaExporter.cs (1)
116JsonConverter effectiveConverter = customConverter ?? typeInfo.Converter;
System.Text.Json (33)
System\Text\Json\Schema\JsonSchemaExporter.cs (1)
89JsonConverter effectiveConverter = customConverter ?? typeInfo.Converter;
System\Text\Json\Serialization\JsonConverter.MetadataHandling.cs (2)
89polymorphicConverter = jsonTypeInfo.Converter; 94Debug.Assert(jsonTypeInfo.Converter.CanHaveMetadata);
System\Text\Json\Serialization\JsonConverterOfT.cs (1)
378Debug.Assert(jsonTypeInfo.Converter.Type == Type);
System\Text\Json\Serialization\JsonSerializerOptions.Converters.cs (1)
67return jsonTypeInfo.Converter;
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Helpers.cs (6)
85typeInfo.ConstructorAttributeProvider = typeInfo.Converter.ConstructorInfo; 103typeInfo.Converter.ConstructorInfo?.HasSetsRequiredMembersAttribute() ?? false; 288Debug.Assert(typeInfo.Converter.ConstructorInfo != null); 289ParameterInfo[] parameters = typeInfo.Converter.ConstructorInfo.GetParameters(); 300Debug.Assert(typeInfo.Converter.ConstructorInfo.DeclaringType != null); 301ThrowHelper.ThrowNotSupportedException_ConstructorContainsNullParameterNames(typeInfo.Converter.ConstructorInfo.DeclaringType);
System\Text\Json\Serialization\Metadata\JsonMetadataServices.Converters.cs (1)
307JsonConverter<T> underlyingConverter = GetTypedConverter<T>(underlyingTypeInfo.Converter);
System\Text\Json\Serialization\Metadata\JsonMetadataServices.Helpers.cs (1)
139Debug.Assert(typeInfo.Converter.ElementType is null);
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (6)
191if (Converter.IsConvertibleCollection) 368internal bool IsNullable => Converter.NullableElementConverter is not null; 751PolymorphicTypeResolver = new PolymorphicTypeResolver(Options, PolymorphismOptions, Type, Converter.CanHaveMetadata); 886=> Converter.ConstructorIsParameterized && CreateObject is null; 897/// <see cref="Converter"/> property which will be resolved either from 928/// <see cref="Converter"/> property which will be resolved either from
System\Text\Json\Serialization\Metadata\JsonTypeInfoOfT.cs (1)
71if (!Converter.SupportsCreateObjectDelegate)
System\Text\Json\Serialization\Metadata\JsonTypeInfoOfT.WriteHelpers.cs (6)
34Debug.Assert(Converter is JsonMetadataServicesConverter<T>); 43Converter.CanBePolymorphic && 100Debug.Assert(Converter is JsonMetadataServicesConverter<T>); 138Converter.CanBePolymorphic && 263Debug.Assert(Converter is JsonMetadataServicesConverter<T>); 285Converter.CanBePolymorphic &&
System\Text\Json\Serialization\ReadStack.cs (3)
223return derivedJsonTypeInfo.Converter; 238return Current.JsonTypeInfo.Converter; 399private string DebuggerDisplay => $"Path = {JsonPath()}, Current = ConverterStrategy.{Current.JsonTypeInfo?.Converter.ConverterStrategy}, {Current.JsonTypeInfo?.Type.Name}";
System\Text\Json\Serialization\ReadStackFrame.cs (1)
166private string DebuggerDisplay => $"ConverterStrategy.{JsonTypeInfo?.Converter.ConverterStrategy}, {JsonTypeInfo?.Type.Name}";
System\Text\Json\Serialization\WriteStackFrame.cs (3)
146return derivedJsonTypeInfo.Converter; 157return PolymorphicTypeInfo.Converter; 169private readonly string DebuggerDisplay => $"ConverterStrategy.{JsonTypeInfo?.Converter.ConverterStrategy}, {JsonTypeInfo?.Type.Name}";