1 instantiation of TypeWithDisplayName
Microsoft.Extensions.AI.Abstractions.Tests (1)
Generated\361d1da7f942c932\TestJsonSerializerContext.TypeWithDisplayName.g.cs (1)
31
ObjectCreator = () => new global::Microsoft.Extensions.AI.ChatResponseFormatTests.
TypeWithDisplayName
(),
22 references to TypeWithDisplayName
Microsoft.Extensions.AI.Abstractions.Tests (22)
ChatCompletion\ChatResponseFormatTests.cs (4)
178
ChatResponseFormat.ForJsonSchema<
TypeWithDisplayName
>(TestJsonSerializerContext.Default.Options) :
179
ChatResponseFormat.ForJsonSchema(typeof(
TypeWithDisplayName
), TestJsonSerializerContext.Default.Options);
193
ChatResponseFormat.ForJsonSchema<
TypeWithDisplayName
>(TestJsonSerializerContext.Default.Options, schemaName: "override_name") :
194
ChatResponseFormat.ForJsonSchema(typeof(
TypeWithDisplayName
), TestJsonSerializerContext.Default.Options, schemaName: "override_name");
Generated\361d1da7f942c932\TestJsonSerializerContext.GetJsonTypeInfo.g.cs (1)
110
if (type == typeof(global::Microsoft.Extensions.AI.ChatResponseFormatTests.
TypeWithDisplayName
))
Generated\361d1da7f942c932\TestJsonSerializerContext.TypeWithDisplayName.g.cs (16)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ChatResponseFormatTests.
TypeWithDisplayName
>? _TypeWithDisplayName;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ChatResponseFormatTests.
TypeWithDisplayName
> TypeWithDisplayName
22
get => _TypeWithDisplayName ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ChatResponseFormatTests.
TypeWithDisplayName
>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.ChatResponseFormatTests.
TypeWithDisplayName
));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ChatResponseFormatTests.
TypeWithDisplayName
> Create_TypeWithDisplayName(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.ChatResponseFormatTests.
TypeWithDisplayName
>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ChatResponseFormatTests.
TypeWithDisplayName
> jsonTypeInfo))
29
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.ChatResponseFormatTests.
TypeWithDisplayName
>
35
ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ChatResponseFormatTests.
TypeWithDisplayName
).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
39
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.ChatResponseFormatTests.
TypeWithDisplayName
>(options, objectInfo);
56
DeclaringType = typeof(global::Microsoft.Extensions.AI.ChatResponseFormatTests.
TypeWithDisplayName
),
58
Getter = static obj => ((global::Microsoft.Extensions.AI.ChatResponseFormatTests.
TypeWithDisplayName
)obj).Value,
59
Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.ChatResponseFormatTests.
TypeWithDisplayName
)obj).Value = value!,
66
AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ChatResponseFormatTests.
TypeWithDisplayName
).GetProperty("Value", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
76
private void TypeWithDisplayNameSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.Extensions.AI.ChatResponseFormatTests.
TypeWithDisplayName
? value)
86
writer.WriteNumber(PropName_value, ((global::Microsoft.Extensions.AI.ChatResponseFormatTests.
TypeWithDisplayName
)value).Value);
TestJsonSerializerContext.cs (1)
44
[JsonSerializable(typeof(ChatResponseFormatTests.
TypeWithDisplayName
))]