6 instantiations of LeafContent
Microsoft.Extensions.AI.Abstractions.Tests (6)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.LeafContent.g.cs (1)
33ObjectCreator = () => new global::Microsoft.Extensions.AI.AIJsonUtilitiesTests.LeafContent(),
Utilities\AIJsonUtilitiesTests.cs (5)
1322DerivedAIContent dc = new LeafContent { DerivedValue = 1, LeafValue = 42 }; 1333AIContent ac = new LeafContent { DerivedValue = 2, LeafValue = 99 }; 1421DerivedAIContent dc = new LeafContent { DerivedValue = 2, LeafValue = 42 }; 1429AIContent ac2 = new LeafContent { DerivedValue = 3, LeafValue = 99 }; 1460AIContent ac = new LeafContent { DerivedValue = 1, LeafValue = 42 };
35 references to LeafContent
Microsoft.Extensions.AI.Abstractions.Tests (35)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.GetJsonTypeInfo.g.cs (1)
48if (type == typeof(global::Microsoft.Extensions.AI.AIJsonUtilitiesTests.LeafContent))
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.LeafContent.g.cs (14)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.AIJsonUtilitiesTests.LeafContent>? _LeafContent; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.AIJsonUtilitiesTests.LeafContent> LeafContent 24get => _LeafContent ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.AIJsonUtilitiesTests.LeafContent>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.AIJsonUtilitiesTests.LeafContent)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.AIJsonUtilitiesTests.LeafContent> Create_LeafContent(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.AIJsonUtilitiesTests.LeafContent>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.AIJsonUtilitiesTests.LeafContent> jsonTypeInfo)) 31var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.AIJsonUtilitiesTests.LeafContent> 37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.AIJsonUtilitiesTests.LeafContent).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 41jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.AIJsonUtilitiesTests.LeafContent>(options, objectInfo); 58DeclaringType = typeof(global::Microsoft.Extensions.AI.AIJsonUtilitiesTests.LeafContent), 60Getter = static obj => ((global::Microsoft.Extensions.AI.AIJsonUtilitiesTests.LeafContent)obj).LeafValue, 61Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.AIJsonUtilitiesTests.LeafContent)obj).LeafValue = value!, 68AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.AIJsonUtilitiesTests.LeafContent).GetProperty("LeafValue", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
Utilities\AIJsonUtilitiesTests.cs (20)
1308options.AddAIContentType<LeafContent>("leaf"); 1312options.AddAIContentType(typeof(LeafContent), "leaf"); 1318Assert.Contains(derivedAIContentTypes, dt => dt.DerivedType == typeof(LeafContent)); 1319Assert.Contains(aiContentTypes, dt => dt.DerivedType == typeof(LeafContent)); 1328LeafContent deserializedDc = Assert.IsType<LeafContent>(JsonSerializer.Deserialize<DerivedAIContent>(json, options)); 1339LeafContent deserializedAc = Assert.IsType<LeafContent>(JsonSerializer.Deserialize<AIContent>(json2, options)); 1404options.AddAIContentType<LeafContent>("leaf"); 1410Assert.Contains(aiContentDerivedTypes, dt => dt.DerivedType == typeof(LeafContent)); 1411Assert.Contains(derivedAIContentTypes, dt => dt.DerivedType == typeof(LeafContent)); 1424LeafContent deserializedLeaf = Assert.IsType<LeafContent>(JsonSerializer.Deserialize<DerivedAIContent>(json2, options)); 1432LeafContent deserializedAc = Assert.IsType<LeafContent>(JsonSerializer.Deserialize<AIContent>(json3, options)); 1450options.AddAIContentType<LeafContent>("leaf"); 1455Assert.Contains(aiContentDerivedTypes, dt => dt.DerivedType == typeof(LeafContent)); 1457Assert.Contains(derivedAIContentTypes, dt => dt.DerivedType == typeof(LeafContent)); 1463Assert.IsType<LeafContent>(JsonSerializer.Deserialize<AIContent>(json, options)); 1944[JsonSerializable(typeof(LeafContent))]