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