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