2 instantiations of PocoWithCustomConverter
Shared.Tests (2)
JsonSchemaExporter\TestTypes.cs (2)
418
yield return new TestData<PocoWithCustomConverter>(
new
() { Value = 42 }, "true");
973
new
PocoWithCustomConverter
{ Value = reader.GetInt32() };
16 references to PocoWithCustomConverter
Shared.Tests (16)
Generated\361d1da7f942c932\TestTypesContext.PocoWithCustomConverter.g.cs (10)
15
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.
PocoWithCustomConverter
>? _PocoWithCustomConverter;
21
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.
PocoWithCustomConverter
> PocoWithCustomConverter
24
get => _PocoWithCustomConverter ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.
PocoWithCustomConverter
>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.
PocoWithCustomConverter
));
27
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.
PocoWithCustomConverter
> Create_PocoWithCustomConverter(global::System.Text.Json.JsonSerializerOptions options)
29
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.
PocoWithCustomConverter
>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.
PocoWithCustomConverter
> jsonTypeInfo))
31
global::System.Text.Json.Serialization.JsonConverter converter = ExpandConverter(typeof(global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.
PocoWithCustomConverter
), new global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.
PocoWithCustomConverter
.CustomConverter(), options);
32
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateValueInfo<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.
PocoWithCustomConverter
> (options, converter);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.GetJsonTypeInfo.g.cs (1)
112
if (type == typeof(global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.
PocoWithCustomConverter
))
JsonSchemaExporter\TestTypes.cs (5)
418
yield return new TestData<
PocoWithCustomConverter
>(new() { Value = 42 }, "true");
970
public class CustomConverter : JsonConverter<
PocoWithCustomConverter
>
972
public override
PocoWithCustomConverter
Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) =>
975
public override void Write(Utf8JsonWriter writer,
PocoWithCustomConverter
value, JsonSerializerOptions options) =>
1278
[JsonSerializable(typeof(
PocoWithCustomConverter
))]