3 references to new
Microsoft.Extensions.AI.Abstractions (1)
Utilities\AIJsonUtilities.cs (1)
68
(typeInfo.PolymorphismOptions ??=
new
()).DerivedTypes.Add(new(contentType, typeDiscriminatorId));
System.Text.Json (2)
System\Text\Json\Serialization\Metadata\JsonPolymorphismOptions.cs (2)
107
options =
new
()
117
(options ??=
new
()).DerivedTypes.Add(new JsonDerivedType(attr.DerivedType, attr.TypeDiscriminator));