2 instantiations of Person
Wasm.Performance.TestApp (2)
Person.cs (1)
21return new Person
PersonJsonContext.Person.g.cs (1)
31ObjectCreator = () => new global::Wasm.Performance.TestApp.Person(),
69 references to Person
Wasm.Performance.TestApp (69)
Pages_Json_razor.g.cs (8)
270Person smallOrgChart = Person.GenerateOrgChart(1, 4); 271Person largeOrgChart = Person.GenerateOrgChart(5, 4); 312=> numPeopleDeserialized = CountPeople(JsonSerializer.Deserialize<Person>(largeOrgChartJson, personJsonContext.Person)); 316var ceo = JsonSerializer.Deserialize<Person>(json); 320static int CountPeople(Person root)
Pages_OrgChart_razor.g.cs (2)
168), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::Wasm.Performance.TestApp.Person>( 171Person.GenerateOrgChart(depth, subs)
Pages_PersonDisplay_razor.g.cs (3)
232foreach (var person in Person.Subordinates) 250), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::Wasm.Performance.TestApp.Person>( 275[Parameter] public Person Person { get; set; }
Person.cs (2)
13public List<Person> Subordinates { get; set; } 16public static Person GenerateOrgChart(int totalDepth, int numDescendantsPerNode, int thisDepth = 0, string namePrefix = null, int siblingIndex = 0)
PersonJsonContext.cs (1)
8[JsonSerializable(typeof(Person))]
PersonJsonContext.GetJsonTypeInfo.g.cs (2)
30if (type == typeof(global::System.Collections.Generic.List<global::Wasm.Performance.TestApp.Person>)) 34if (type == typeof(global::Wasm.Performance.TestApp.Person))
PersonJsonContext.ListPerson.g.cs (12)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Wasm.Performance.TestApp.Person>>? _ListPerson; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Wasm.Performance.TestApp.Person>> ListPerson 22get => _ListPerson ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Wasm.Performance.TestApp.Person>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.List<global::Wasm.Performance.TestApp.Person>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Wasm.Performance.TestApp.Person>> Create_ListPerson(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.List<global::Wasm.Performance.TestApp.Person>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Wasm.Performance.TestApp.Person>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.List<global::Wasm.Performance.TestApp.Person>> 31ObjectCreator = () => new global::System.Collections.Generic.List<global::Wasm.Performance.TestApp.Person>(), 35jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateListInfo<global::System.Collections.Generic.List<global::Wasm.Performance.TestApp.Person>, global::Wasm.Performance.TestApp.Person>(options, info); 45private void ListPersonSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.List<global::Wasm.Performance.TestApp.Person>? value)
PersonJsonContext.Person.g.cs (39)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Wasm.Performance.TestApp.Person>? _Person; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Wasm.Performance.TestApp.Person> Person 22get => _Person ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Wasm.Performance.TestApp.Person>)Options.GetTypeInfo(typeof(global::Wasm.Performance.TestApp.Person)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Wasm.Performance.TestApp.Person> Create_Person(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Wasm.Performance.TestApp.Person>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Wasm.Performance.TestApp.Person> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Wasm.Performance.TestApp.Person> 35ConstructorAttributeProviderFactory = static () => typeof(global::Wasm.Performance.TestApp.Person).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Wasm.Performance.TestApp.Person>(options, objectInfo); 56DeclaringType = typeof(global::Wasm.Performance.TestApp.Person), 58Getter = static obj => ((global::Wasm.Performance.TestApp.Person)obj).Name, 59Setter = static (obj, value) => ((global::Wasm.Performance.TestApp.Person)obj).Name = value!, 66AttributeProviderFactory = static () => typeof(global::Wasm.Performance.TestApp.Person).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 76DeclaringType = typeof(global::Wasm.Performance.TestApp.Person), 78Getter = static obj => ((global::Wasm.Performance.TestApp.Person)obj).Salary, 79Setter = static (obj, value) => ((global::Wasm.Performance.TestApp.Person)obj).Salary = value!, 86AttributeProviderFactory = static () => typeof(global::Wasm.Performance.TestApp.Person).GetProperty("Salary", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 96DeclaringType = typeof(global::Wasm.Performance.TestApp.Person), 98Getter = static obj => ((global::Wasm.Performance.TestApp.Person)obj).IsAdmin, 99Setter = static (obj, value) => ((global::Wasm.Performance.TestApp.Person)obj).IsAdmin = value!, 106AttributeProviderFactory = static () => typeof(global::Wasm.Performance.TestApp.Person).GetProperty("IsAdmin", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 111var info3 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.List<global::Wasm.Performance.TestApp.Person>> 116DeclaringType = typeof(global::Wasm.Performance.TestApp.Person), 118Getter = static obj => ((global::Wasm.Performance.TestApp.Person)obj).Subordinates, 119Setter = static (obj, value) => ((global::Wasm.Performance.TestApp.Person)obj).Subordinates = value!, 126AttributeProviderFactory = static () => typeof(global::Wasm.Performance.TestApp.Person).GetProperty("Subordinates", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<global::Wasm.Performance.TestApp.Person>), global::System.Array.Empty<global::System.Type>(), null), 129properties[3] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.List<global::Wasm.Performance.TestApp.Person>>(options, info3); 136DeclaringType = typeof(global::Wasm.Performance.TestApp.Person), 138Getter = static obj => ((global::Wasm.Performance.TestApp.Person)obj).SecurityClearances, 139Setter = static (obj, value) => ((global::Wasm.Performance.TestApp.Person)obj).SecurityClearances = value!, 146AttributeProviderFactory = static () => typeof(global::Wasm.Performance.TestApp.Person).GetProperty("SecurityClearances", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, bool>), global::System.Array.Empty<global::System.Type>(), null), 156private void PersonSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Wasm.Performance.TestApp.Person? value) 166writer.WriteString(PropName_Name, ((global::Wasm.Performance.TestApp.Person)value).Name); 167writer.WriteNumber(PropName_Salary, ((global::Wasm.Performance.TestApp.Person)value).Salary); 168writer.WriteBoolean(PropName_IsAdmin, ((global::Wasm.Performance.TestApp.Person)value).IsAdmin); 170ListPersonSerializeHandler(writer, ((global::Wasm.Performance.TestApp.Person)value).Subordinates); 172DictionaryStringBooleanSerializeHandler(writer, ((global::Wasm.Performance.TestApp.Person)value).SecurityClearances);