31 references to Deserialize
Microsoft.AspNetCore.Components.Endpoints.Tests (10)
EndpointHtmlRendererTest.cs (10)
137JsonSerializer.Deserialize<ComponentParameter[]>(Convert.FromBase64String(marker.ParameterDefinitions), WebAssemblyComponentSerializationSettings.JsonSerializationOptions)); 142var value = Assert.Single(JsonSerializer.Deserialize<object[]>(Convert.FromBase64String(marker.ParameterValues), WebAssemblyComponentSerializationSettings.JsonSerializationOptions)); 173var parameterDefinition = Assert.Single(JsonSerializer.Deserialize<ComponentParameter[]>(Convert.FromBase64String(marker.ParameterDefinitions), WebAssemblyComponentSerializationSettings.JsonSerializationOptions)); 178var value = Assert.Single(JsonSerializer.Deserialize<object[]>(Convert.FromBase64String(marker.ParameterValues), WebAssemblyComponentSerializationSettings.JsonSerializationOptions)); 209var parameterDefinition = Assert.Single(JsonSerializer.Deserialize<ComponentParameter[]>(Convert.FromBase64String(preambleMarker.ParameterDefinitions), WebAssemblyComponentSerializationSettings.JsonSerializationOptions)); 214var value = Assert.Single(JsonSerializer.Deserialize<object[]>(Convert.FromBase64String(preambleMarker.ParameterValues), WebAssemblyComponentSerializationSettings.JsonSerializationOptions)); 258var parameterDefinition = Assert.Single(JsonSerializer.Deserialize<ComponentParameter[]>(Convert.FromBase64String(preambleMarker.ParameterDefinitions), WebAssemblyComponentSerializationSettings.JsonSerializationOptions)); 263var value = Assert.Single(JsonSerializer.Deserialize<object[]>(Convert.FromBase64String(preambleMarker.ParameterValues), WebAssemblyComponentSerializationSettings.JsonSerializationOptions)); 1134var parameterValues = JsonSerializer.Deserialize<object[]>(Convert.FromBase64String(marker.ParameterValues), WebAssemblyComponentSerializationSettings.JsonSerializationOptions); 1147var parameterValues = JsonSerializer.Deserialize<object[]>(Convert.FromBase64String(marker.ParameterValues), WebAssemblyComponentSerializationSettings.JsonSerializationOptions);
Microsoft.AspNetCore.Components.Tests (4)
Lifetime\ComponentApplicationStateTest.cs (3)
79Assert.Equal(myState, JsonSerializer.Deserialize<byte[]>(stored)); 115Assert.Equal(myState, JsonSerializer.Deserialize<byte[]>(stored)); 133Assert.Null(JsonSerializer.Deserialize<byte[]>(stored));
Lifetime\ComponentStatePersistenceManagerTest.cs (1)
100Assert.Equal(data, JsonSerializer.Deserialize<byte[]>(persisted.ToArray()));
Microsoft.AspNetCore.Http.Extensions.Tests (3)
RequestDelegateFactoryTests.cs (2)
1354var deserializedResponseBody = JsonSerializer.Deserialize<JsonTodoChild>(responseBodyStream.ToArray(), new JsonSerializerOptions 2509var deserializedResponseBody = JsonSerializer.Deserialize<TodoStruct>(responseBodyStream.ToArray(), new JsonSerializerOptions
RequestDelegateGenerator\RequestDelegateCreationTests.Responses.cs (1)
315var deserializedResponseBody = JsonSerializer.Deserialize<Todo>(((MemoryStream)httpContext.Response.Body).ToArray(), new JsonSerializerOptions
Microsoft.AspNetCore.Http.Results.Tests (6)
HttpResultsHelperTests.cs (6)
40var body = JsonSerializer.Deserialize<TodoStruct>(responseBodyStream.ToArray(), serializerOptions); 71var body = JsonSerializer.Deserialize<Todo>(responseBodyStream.ToArray(), serializerOptions); 104var body = JsonSerializer.Deserialize<TodoChild>(responseBodyStream.ToArray(), serializerOptions); 138var body = JsonSerializer.Deserialize<TodoChild>(responseBodyStream.ToArray(), serializerOptions); 172var body = JsonSerializer.Deserialize<TodoJsonChild>(responseBodyStream.ToArray(), serializerOptions); 200var body = JsonSerializer.Deserialize<JsonTodo[]>(responseBodyStream.ToArray(), serializerOptions);
Microsoft.Extensions.Caching.Hybrid.Tests (1)
SampleUsage.cs (1)
176return JsonSerializer.Deserialize<T>(bytes)!;
OrderProcessor (1)
OrderProcessingWorker.cs (1)
65var order = JsonSerializer.Deserialize<Order>(message.Span) ?? new Order() { Id = "fake" };
System.Memory.Data (1)
System\BinaryData.cs (1)
478=> JsonSerializer.Deserialize<T>(GetBytesWithTrimmedBom(), options);
System.Windows.Forms (2)
System\Windows\Forms\Nrbf\WinFormsSerializationRecordExtensions.cs (1)
97@object = JsonSerializer.Deserialize<T>(byteData.GetArray());
System\Windows\Forms\OLE\JsonData.cs (1)
120result = JsonSerializer.Deserialize<T>(JsonBytes);
System.Windows.Forms.Tests (3)
System\Windows\Forms\BinaryFormat\WinFormsBinaryFormattedObjectTests.cs (1)
89result = JsonSerializer.Deserialize<SimpleTestData>(JsonBytes);
System\Windows\Forms\ClipboardTests.cs (2)
1074Action a1 = () => JsonSerializer.Deserialize<Font>(serialized); 1133return JsonSerializer.Deserialize<T>(_formatToJson[format]);