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