116 references to SystemTextJsonOutputFormatterTest
Microsoft.AspNetCore.Mvc.Core.Test (116)
TestJsonContext.g.cs (2)
26public static global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.TestJsonContext Default { get; } = new global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.TestJsonContext(new global::System.Text.Json.JsonSerializerOptions(s_defaultOptions));
TestJsonContext.GetJsonTypeInfo.g.cs (4)
24if (type == typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.JsonPerson)) 28if (type == typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.JsonPersonExtended)) 32if (type == typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.Person)) 36if (type == typeof(global::System.Collections.Generic.IAsyncEnumerable<global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.JsonPerson>))
TestJsonContext.IAsyncEnumerableJsonPerson.g.cs (10)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IAsyncEnumerable<global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.JsonPerson>>? _IAsyncEnumerableJsonPerson; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IAsyncEnumerable<global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.JsonPerson>> IAsyncEnumerableJsonPerson 24get => _IAsyncEnumerableJsonPerson ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IAsyncEnumerable<global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.JsonPerson>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.IAsyncEnumerable<global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.JsonPerson>)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IAsyncEnumerable<global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.JsonPerson>> Create_IAsyncEnumerableJsonPerson(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.IAsyncEnumerable<global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.JsonPerson>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IAsyncEnumerable<global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.JsonPerson>> jsonTypeInfo)) 31var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.IAsyncEnumerable<global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.JsonPerson>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateIAsyncEnumerableInfo<global::System.Collections.Generic.IAsyncEnumerable<global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.JsonPerson>, global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.JsonPerson>(options, info);
TestJsonContext.JsonPerson.g.cs (29)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.JsonPerson>? _JsonPerson; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.JsonPerson> JsonPerson 24get => _JsonPerson ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.JsonPerson>)Options.GetTypeInfo(typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.JsonPerson)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.JsonPerson> Create_JsonPerson(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.JsonPerson>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.JsonPerson> jsonTypeInfo)) 31var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.JsonPerson> 33ObjectCreator = () => new global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.JsonPerson(), 37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.JsonPerson).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.JsonPerson>(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);
TestJsonContext.JsonPersonExtended.g.cs (38)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.JsonPersonExtended>? _JsonPersonExtended; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.JsonPersonExtended> JsonPersonExtended 24get => _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)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.JsonPersonExtended> Create_JsonPersonExtended(global::System.Text.Json.JsonSerializerOptions options) 29if (!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)) 31var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.JsonPersonExtended> 33ObjectCreator = () => new global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.JsonPersonExtended(), 37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.JsonPersonExtended).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.JsonPersonExtended>(options, objectInfo); 58DeclaringType = typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.JsonPersonExtended), 60Getter = static obj => ((global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.JsonPersonExtended)obj).Age, 61Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.JsonPersonExtended)obj).Age = value!, 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.JsonPersonExtended).GetProperty("Age", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 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); 138private void JsonPersonExtendedSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.JsonPersonExtended? value) 148writer.WriteNumber(PropName_Age, ((global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.JsonPersonExtended)value).Age); 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 (33)
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> 33ObjectCreator = () => new 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);