1 type derived from Person
Microsoft.AspNetCore.Mvc.Core.Test (1)
Formatters\SystemTextJsonOutputFormatterTest.cs (1)
305
private class JsonPerson :
Person
3 instantiations of Person
Microsoft.AspNetCore.Mvc.Core.Test (3)
Formatters\SystemTextJsonOutputFormatterTest.cs (2)
32
var person = new
Person
35
Child = new
Person
{ Name = "Child", },
TestJsonContext.Person.g.cs (1)
33
ObjectCreator = () => new global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
(),
77 references to Person
Microsoft.AspNetCore.Mvc.Core.Test (77)
Formatters\SystemTextJsonOutputFormatterTest.cs (5)
32
var
person = new Person
48
typeof(
Person
),
76
typeof(
Person
),
298
public
Person
Child { get; set; }
300
public
Person
Parent { get; set; }
TestJsonContext.GetJsonTypeInfo.g.cs (1)
32
if (type == typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
))
TestJsonContext.JsonPerson.g.cs (18)
58
DeclaringType = typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
),
60
Getter = static obj => ((global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
)obj).Name,
61
Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
)obj).Name = value!,
68
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
73
var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
>
78
DeclaringType = typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
),
80
Getter = static obj => ((global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
)obj).Child,
81
Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
)obj).Child = value!,
88
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
).GetProperty("Child", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
), global::System.Array.Empty<global::System.Type>(), null),
91
properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
>(options, info1);
93
var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
>
98
DeclaringType = typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
),
100
Getter = static obj => ((global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
)obj).Parent,
101
Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
)obj).Parent = value!,
108
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
).GetProperty("Parent", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
), global::System.Array.Empty<global::System.Type>(), null),
111
properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
>(options, info2);
TestJsonContext.JsonPersonExtended.g.cs (21)
78
DeclaringType = typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
),
80
Getter = static obj => ((global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
)obj).Name,
81
Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
)obj).Name = value!,
88
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
93
var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
>
98
DeclaringType = typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
),
100
Getter = static obj => ((global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
)obj).Child,
101
Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
)obj).Child = value!,
108
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
).GetProperty("Child", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
), global::System.Array.Empty<global::System.Type>(), null),
111
properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
>(options, info2);
113
var info3 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
>
118
DeclaringType = typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
),
120
Getter = static obj => ((global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
)obj).Parent,
121
Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
)obj).Parent = value!,
128
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
).GetProperty("Parent", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
), global::System.Array.Empty<global::System.Type>(), null),
131
properties[3] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
>(options, info3);
149
writer.WriteString(PropName_Name, ((global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
)value).Name);
151
PersonSerializeHandler(writer, ((global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
)value).Child);
153
PersonSerializeHandler(writer, ((global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
)value).Parent);
TestJsonContext.Person.g.cs (32)
15
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
>? _Person;
21
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
> Person
24
get => _Person ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
>)Options.GetTypeInfo(typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
));
27
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
> Create_Person(global::System.Text.Json.JsonSerializerOptions options)
29
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
> jsonTypeInfo))
31
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
>
37
ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
).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.
Person
>(options, objectInfo);
58
DeclaringType = typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
),
60
Getter = static obj => ((global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
)obj).Name,
61
Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
)obj).Name = value!,
68
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
73
var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
>
78
DeclaringType = typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
),
80
Getter = static obj => ((global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
)obj).Child,
81
Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
)obj).Child = value!,
88
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
).GetProperty("Child", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
), global::System.Array.Empty<global::System.Type>(), null),
91
properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
>(options, info1);
93
var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
>
98
DeclaringType = typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
),
100
Getter = static obj => ((global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
)obj).Parent,
101
Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
)obj).Parent = value!,
108
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
).GetProperty("Parent", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
), global::System.Array.Empty<global::System.Type>(), null),
111
properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
>(options, info2);
118
private void PersonSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
? value)
128
writer.WriteString(PropName_Name, ((global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
)value).Name);
130
PersonSerializeHandler(writer, ((global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
)value).Child);
132
PersonSerializeHandler(writer, ((global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.
Person
)value).Parent);