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