3 instantiations of JsonPersonExtended
Microsoft.AspNetCore.Mvc.Core.Test (3)
Formatters\SystemTextJsonOutputFormatterTest.cs (2)
179
JsonPerson person = new
JsonPersonExtended
()
255
yield return new
JsonPersonExtended
() { Name = "Two", Age = 99 };
TestJsonContext.JsonPersonExtended.g.cs (1)
33
ObjectCreator = () => new global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
JsonPersonExtended
(),
19 references to JsonPersonExtended
Microsoft.AspNetCore.Mvc.Core.Test (19)
Formatters\SystemTextJsonOutputFormatterTest.cs (2)
304
[JsonDerivedType(typeof(
JsonPersonExtended
), nameof(
JsonPersonExtended
))]
TestJsonContext.GetJsonTypeInfo.g.cs (1)
28
if (type == typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
JsonPersonExtended
))
TestJsonContext.JsonPersonExtended.g.cs (16)
15
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
JsonPersonExtended
>? _JsonPersonExtended;
21
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
JsonPersonExtended
> JsonPersonExtended
24
get => _JsonPersonExtended ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
JsonPersonExtended
>)Options.GetTypeInfo(typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
JsonPersonExtended
));
27
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
JsonPersonExtended
> Create_JsonPersonExtended(global::System.Text.Json.JsonSerializerOptions options)
29
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
JsonPersonExtended
>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
JsonPersonExtended
> jsonTypeInfo))
31
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
JsonPersonExtended
>
37
ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
JsonPersonExtended
).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.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
JsonPersonExtended
>(options, objectInfo);
58
DeclaringType = typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
JsonPersonExtended
),
60
Getter = static obj => ((global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
JsonPersonExtended
)obj).Age,
61
Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
JsonPersonExtended
)obj).Age = value!,
68
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
JsonPersonExtended
).GetProperty("Age", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
138
private void JsonPersonExtendedSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
JsonPersonExtended
? value)
148
writer.WriteNumber(PropName_Age, ((global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
JsonPersonExtended
)value).Age);