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