40 references to new
Aspire.Dashboard (1)
Components\Dialogs\TextVisualizerDialog.razor.cs (1)
180var reader = new Utf8JsonReader(jsonData, new JsonReaderOptions
Aspire.Hosting.Azure (1)
Provisioning\Provisioners\AzureProvisioner.cs (1)
536Utf8JsonReader reader = new(bytes);
Microsoft.AspNetCore.Components (1)
PersistentComponentState.cs (1)
106var reader = new Utf8JsonReader(data);
Microsoft.AspNetCore.Components.Server.Tests (4)
ElementReferenceJsonConverterTest.cs (4)
46var reader = new Utf8JsonReader(bytes); 66var reader = new Utf8JsonReader(bytes); 86var reader = new Utf8JsonReader(bytes); 105var reader = new Utf8JsonReader(bytes);
Microsoft.AspNetCore.Components.Web.Tests (12)
WebEventData\ChangeEventArgsReaderTest.cs (1)
66var jsonReader = new Utf8JsonReader(json);
WebEventData\ClipboardEventArgsReaderTest.cs (1)
30var jsonReader = new Utf8JsonReader(json);
WebEventData\DragEventArgsReaderTest.cs (1)
84var jsonReader = new Utf8JsonReader(json);
WebEventData\ErrorEventArgsReaderTest.cs (1)
39var jsonReader = new Utf8JsonReader(json);
WebEventData\FocusEventArgsReaderTest.cs (1)
31var jsonReader = new Utf8JsonReader(json);
WebEventData\KeyboardEventArgsReaderTest.cs (1)
49var jsonReader = new Utf8JsonReader(json);
WebEventData\MouseEventArgsReaderTest.cs (1)
69var jsonReader = new Utf8JsonReader(json);
WebEventData\PointerEventArgsReaderTest.cs (1)
61var jsonReader = new Utf8JsonReader(json);
WebEventData\ProgressEventArgsReaderTest.cs (1)
36var jsonReader = new Utf8JsonReader(json);
WebEventData\TouchEventArgsReaderTest.cs (1)
114var jsonReader = new Utf8JsonReader(json);
WebEventData\WebEventDescriptorReaderTest.cs (1)
68var jsonReader = new Utf8JsonReader(json);
WebEventData\WheelEventArgsReaderTest.cs (1)
54var jsonReader = new Utf8JsonReader(json);
Microsoft.AspNetCore.Http.Abstractions.Tests (5)
HttpValidationProblemDetailsJsonConverterTest.cs (2)
59var reader = new Utf8JsonReader(Encoding.UTF8.GetBytes(json)); 102var reader = new Utf8JsonReader(Encoding.UTF8.GetBytes(json));
ProblemDetailsJsonConverterTest.cs (3)
25var reader = new Utf8JsonReader(Encoding.UTF8.GetBytes(json)); 42var reader = new Utf8JsonReader(Encoding.UTF8.GetBytes(json)); 137var reader = new Utf8JsonReader(Encoding.UTF8.GetBytes(json));
Microsoft.AspNetCore.Mvc.Core.Test (2)
Infrastructure\ValidationProblemDetailsJsonConverterTest.cs (2)
26var reader = new Utf8JsonReader(Encoding.UTF8.GetBytes(json)); 68var reader = new Utf8JsonReader(Encoding.UTF8.GetBytes(json));
Microsoft.JSInterop (2)
Infrastructure\DotNetDispatcher.cs (2)
229var reader = new Utf8JsonReader(buffer.AsSpan(0, count)); 315var reader = new Utf8JsonReader(utf8JsonBytes);
Microsoft.JSInterop.Tests (8)
JSRuntimeTest.cs (8)
59var reader = new Utf8JsonReader(Encoding.UTF8.GetBytes("null")); 115var reader = new Utf8JsonReader(bytes); 137var reader = new Utf8JsonReader(bytes); 161var reader = new Utf8JsonReader(bytes); 190var reader = new Utf8JsonReader(bytes); 218var reader = new Utf8JsonReader(bytes); 245var firstReader = new Utf8JsonReader(Encoding.UTF8.GetBytes("\"Some data\"")); 246var secondReader = new Utf8JsonReader(Encoding.UTF8.GetBytes("\"Exception\""));
System.Text.Json (4)
System\Text\Json\Nodes\JsonValue.cs (1)
146Utf8JsonReader reader = new(output.WrittenMemory.Span);
System\Text\Json\Nodes\JsonValueOfTCustomized.cs (1)
57Utf8JsonReader reader = new(output.WrittenMemory.Span);
System\Text\Json\Serialization\JsonSerializer.Read.Utf8JsonReader.cs (1)
472: new Utf8JsonReader(valueSpan, reader.CurrentState.Options);
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Raw.cs (1)
257Utf8JsonReader reader = new(utf8Json);