170 references to HttpResultsHelperTests
Microsoft.AspNetCore.Http.Results.Tests (170)
TestJsonContext.g.cs (2)
26public static global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TestJsonContext Default { get; } = new global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TestJsonContext(new global::System.Text.Json.JsonSerializerOptions(s_defaultOptions));
TestJsonContext.GetJsonTypeInfo.g.cs (7)
28if (type == typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.JsonTodo)) 32if (type == typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.JsonTodo[])) 36if (type == typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo)) 40if (type == typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoChild)) 44if (type == typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoJsonChild)) 48if (type == typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoStruct)) 52if (type == typeof(global::System.Collections.Generic.IAsyncEnumerable<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.JsonTodo>))
TestJsonContext.IAsyncEnumerableJsonTodo.g.cs (10)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IAsyncEnumerable<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.JsonTodo>>? _IAsyncEnumerableJsonTodo; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IAsyncEnumerable<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.JsonTodo>> IAsyncEnumerableJsonTodo 24get => _IAsyncEnumerableJsonTodo ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IAsyncEnumerable<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.JsonTodo>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.IAsyncEnumerable<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.JsonTodo>)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IAsyncEnumerable<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.JsonTodo>> Create_IAsyncEnumerableJsonTodo(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.IAsyncEnumerable<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.JsonTodo>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IAsyncEnumerable<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.JsonTodo>> jsonTypeInfo)) 31var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.IAsyncEnumerable<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.JsonTodo>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateIAsyncEnumerableInfo<global::System.Collections.Generic.IAsyncEnumerable<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.JsonTodo>, global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.JsonTodo>(options, info);
TestJsonContext.JsonTodo.g.cs (23)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.JsonTodo>? _JsonTodo; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.JsonTodo> JsonTodo 24get => _JsonTodo ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.JsonTodo>)Options.GetTypeInfo(typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.JsonTodo)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.JsonTodo> Create_JsonTodo(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.JsonTodo>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.JsonTodo> jsonTypeInfo)) 31var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.JsonTodo> 33ObjectCreator = () => new global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.JsonTodo(), 37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.JsonTodo).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.Http.HttpResults.HttpResultsHelperTests.JsonTodo>(options, objectInfo); 58DeclaringType = typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo), 60Getter = static obj => ((global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo)obj).Id, 61Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo)obj).Id = value!, 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 78DeclaringType = typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo), 80Getter = static obj => ((global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo)obj).Name, 81Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo)obj).Name = value!, 88AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 98DeclaringType = typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo), 100Getter = static obj => ((global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo)obj).IsComplete, 101Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo)obj).IsComplete = value!, 108AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo).GetProperty("IsComplete", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
TestJsonContext.JsonTodoArray.g.cs (10)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.JsonTodo[]>? _JsonTodoArray; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.JsonTodo[]> JsonTodoArray 24get => _JsonTodoArray ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.JsonTodo[]>)Options.GetTypeInfo(typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.JsonTodo[])); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.JsonTodo[]> Create_JsonTodoArray(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.JsonTodo[]>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.JsonTodo[]> jsonTypeInfo)) 31var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.JsonTodo[]> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateArrayInfo<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.JsonTodo>(options, info); 47private void JsonTodoArraySerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.JsonTodo[]? value)
TestJsonContext.Todo.g.cs (27)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo>? _Todo; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo> Todo 24get => _Todo ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo>)Options.GetTypeInfo(typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo> Create_Todo(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo> jsonTypeInfo)) 31var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo> 33ObjectCreator = () => new global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo(), 37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo).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.Http.HttpResults.HttpResultsHelperTests.Todo>(options, objectInfo); 58DeclaringType = typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo), 60Getter = static obj => ((global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo)obj).Id, 61Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo)obj).Id = value!, 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 78DeclaringType = typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo), 80Getter = static obj => ((global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo)obj).Name, 81Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo)obj).Name = value!, 88AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 98DeclaringType = typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo), 100Getter = static obj => ((global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo)obj).IsComplete, 101Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo)obj).IsComplete = value!, 108AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo).GetProperty("IsComplete", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 118private void TodoSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo? value) 128writer.WriteNumber(PropName_Id, ((global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo)value).Id); 129writer.WriteString(PropName_Name, ((global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo)value).Name); 130writer.WriteBoolean(PropName_IsComplete, ((global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo)value).IsComplete);
TestJsonContext.TodoChild.g.cs (32)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoChild>? _TodoChild; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoChild> TodoChild 24get => _TodoChild ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoChild>)Options.GetTypeInfo(typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoChild)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoChild> Create_TodoChild(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoChild>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoChild> jsonTypeInfo)) 31var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoChild> 33ObjectCreator = () => new global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoChild(), 37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoChild).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.Http.HttpResults.HttpResultsHelperTests.TodoChild>(options, objectInfo); 58DeclaringType = typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoChild), 60Getter = static obj => ((global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoChild)obj).Child, 61Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoChild)obj).Child = value!, 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoChild).GetProperty("Child", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 78DeclaringType = typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo), 80Getter = static obj => ((global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo)obj).Id, 81Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo)obj).Id = value!, 88AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 98DeclaringType = typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo), 100Getter = static obj => ((global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo)obj).Name, 101Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo)obj).Name = value!, 108AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 118DeclaringType = typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo), 120Getter = static obj => ((global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo)obj).IsComplete, 121Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo)obj).IsComplete = value!, 128AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo).GetProperty("IsComplete", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 138private void TodoChildSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoChild? value) 148writer.WriteString(PropName_Child, ((global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoChild)value).Child); 149writer.WriteNumber(PropName_Id, ((global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo)value).Id); 150writer.WriteString(PropName_Name, ((global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo)value).Name); 151writer.WriteBoolean(PropName_IsComplete, ((global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo)value).IsComplete);
TestJsonContext.TodoJsonChild.g.cs (32)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoJsonChild>? _TodoJsonChild; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoJsonChild> TodoJsonChild 24get => _TodoJsonChild ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoJsonChild>)Options.GetTypeInfo(typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoJsonChild)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoJsonChild> Create_TodoJsonChild(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoJsonChild>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoJsonChild> jsonTypeInfo)) 31var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoJsonChild> 33ObjectCreator = () => new global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoJsonChild(), 37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoJsonChild).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.Http.HttpResults.HttpResultsHelperTests.TodoJsonChild>(options, objectInfo); 58DeclaringType = typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoJsonChild), 60Getter = static obj => ((global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoJsonChild)obj).Child, 61Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoJsonChild)obj).Child = value!, 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoJsonChild).GetProperty("Child", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 78DeclaringType = typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo), 80Getter = static obj => ((global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo)obj).Id, 81Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo)obj).Id = value!, 88AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 98DeclaringType = typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo), 100Getter = static obj => ((global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo)obj).Name, 101Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo)obj).Name = value!, 108AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 118DeclaringType = typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo), 120Getter = static obj => ((global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo)obj).IsComplete, 121Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo)obj).IsComplete = value!, 128AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo).GetProperty("IsComplete", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 138private void TodoJsonChildSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoJsonChild? value) 148writer.WriteString(PropName_Child, ((global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoJsonChild)value).Child); 149writer.WriteNumber(PropName_Id, ((global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo)value).Id); 150writer.WriteString(PropName_Name, ((global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo)value).Name); 151writer.WriteBoolean(PropName_IsComplete, ((global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo)value).IsComplete);
TestJsonContext.TodoStruct.g.cs (27)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoStruct>? _TodoStruct; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoStruct> TodoStruct 24get => _TodoStruct ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoStruct>)Options.GetTypeInfo(typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoStruct)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoStruct> Create_TodoStruct(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoStruct>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoStruct> jsonTypeInfo)) 31var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoStruct> 33ObjectCreator = () => new global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoStruct(), 37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoStruct).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.Http.HttpResults.HttpResultsHelperTests.TodoStruct>(options, objectInfo); 58DeclaringType = typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoStruct), 60Getter = static obj => ((global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoStruct)obj).Id, 61Setter = static (obj, value) => global::System.Runtime.CompilerServices.Unsafe.Unbox<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoStruct>(obj).Id = value!, 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoStruct).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 78DeclaringType = typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoStruct), 80Getter = static obj => ((global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoStruct)obj).Name, 81Setter = static (obj, value) => global::System.Runtime.CompilerServices.Unsafe.Unbox<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoStruct>(obj).Name = value!, 88AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoStruct).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 98DeclaringType = typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoStruct), 100Getter = static obj => ((global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoStruct)obj).IsComplete, 101Setter = static (obj, value) => global::System.Runtime.CompilerServices.Unsafe.Unbox<global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoStruct>(obj).IsComplete = value!, 108AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoStruct).GetProperty("IsComplete", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 118private void TodoStructSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoStruct value) 122writer.WriteNumber(PropName_Id, ((global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoStruct)value).Id); 123writer.WriteString(PropName_Name, ((global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoStruct)value).Name); 124writer.WriteBoolean(PropName_IsComplete, ((global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoStruct)value).IsComplete);