35 instantiations of Utf8JsonWriter
Aspire.Dashboard (1)
Components\Dialogs\TextVisualizerDialog.razor.cs (1)
192using var writer = new Utf8JsonWriter(stream, new JsonWriterOptions { Indented = true });
Aspire.Hosting (1)
Publishing\ManifestPublisher.cs (1)
40using var jsonWriter = JsonWriter ?? new Utf8JsonWriter(stream, new JsonWriterOptions { Indented = true });
Aspire.Hosting.Azure.EventHubs (1)
AzureEventHubsExtensions.cs (1)
212using var writer = new Utf8JsonWriter(stream);
Aspire.Hosting.PostgreSQL (1)
PostgresBuilderExtensions.cs (1)
166using var writer = new Utf8JsonWriter(stream);
Aspire.Hosting.Redis (1)
RedisBuilderExtensions.cs (1)
227using var writer = new Utf8JsonWriter(stream);
Aspire.Hosting.Tests (3)
Helpers\JsonDocumentManifestPublisher.cs (1)
22using var writer = new Utf8JsonWriter(stream, new() { Indented = true });
Utils\ManifestUtils.cs (2)
25var writer = new Utf8JsonWriter(ms); 42var writer = new Utf8JsonWriter(ms);
JwtBearerSample (1)
Startup.cs (1)
98using var writer = new Utf8JsonWriter(output);
Microsoft.AspNetCore.Components.Endpoints (1)
Builder\ResourceCollectionUrlEndpoint.cs (1)
99var utf8Writer = new Utf8JsonWriter(content);
Microsoft.AspNetCore.Components.Server.Tests (1)
ElementReferenceJsonConverterTest.cs (1)
28var writer = new Utf8JsonWriter(memoryStream);
Microsoft.AspNetCore.Http.Abstractions.Tests (4)
HttpValidationProblemDetailsJsonConverterTest.cs (1)
29var writer = new Utf8JsonWriter(ms);
ProblemDetailsJsonConverterTest.cs (3)
179using (var writer = new Utf8JsonWriter(stream)) 203using (var writer = new Utf8JsonWriter(stream)) 234using (var writer = new Utf8JsonWriter(stream))
Microsoft.AspNetCore.Http.Connections.Common (1)
src\SignalR\common\Shared\ReusableUtf8JsonWriter.cs (1)
24_writer = new Utf8JsonWriter(stream, new JsonWriterOptions()
Microsoft.AspNetCore.Mvc.Core.Test (2)
Infrastructure\ValidationProblemDetailsJsonConverterTest.cs (2)
146using Utf8JsonWriter writer = new(stream); 177using Utf8JsonWriter writer = new(stream);
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Infrastructure\DefaultTempDataSerializer.cs (1)
137using var writer = new Utf8JsonWriter(bufferWriter);
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Infrastructure\KestrelEventSource.cs (1)
237var writer = new Utf8JsonWriter(bufferWriter);
Microsoft.AspNetCore.SignalR.Common (1)
src\SignalR\common\Shared\ReusableUtf8JsonWriter.cs (1)
24_writer = new Utf8JsonWriter(stream, new JsonWriterOptions()
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
src\SignalR\common\Shared\ReusableUtf8JsonWriter.cs (1)
24_writer = new Utf8JsonWriter(stream, new JsonWriterOptions()
Microsoft.AspNetCore.StaticAssets.Tests (1)
StaticAssetsIntegrationTests.cs (1)
539using var writer = new Utf8JsonWriter(stream);
Microsoft.Extensions.Caching.Hybrid (1)
Internal\DefaultJsonSerializerFactory.cs (1)
33using var writer = new Utf8JsonWriter(target);
Microsoft.Extensions.DependencyModel (1)
DependencyContextWriter.cs (1)
26using (var jsonWriter = new Utf8JsonWriter(stream, options))
Microsoft.Extensions.Logging.Console (1)
JsonConsoleFormatter.cs (1)
63using (var writer = new Utf8JsonWriter(output, FormatterOptions.JsonWriterOptions))
Microsoft.Extensions.Logging.EventSource (1)
EventSourceLogger.cs (1)
259using var writer = new Utf8JsonWriter(stream);
SignalRSamples (1)
Startup.cs (1)
55await using (var writer = new Utf8JsonWriter(context.Response.BodyWriter, _jsonWriterOptions))
System.Text.Json (7)
System\Text\Json\Serialization\JsonSerializer.Read.Node.cs (2)
160using (var writer = new Utf8JsonWriter(output, options.GetWriterOptions())) 181using (var writer = new Utf8JsonWriter(output, options.GetWriterOptions()))
System\Text\Json\Serialization\Metadata\JsonTypeInfoOfT.WriteHelpers.cs (2)
161var writer = new Utf8JsonWriter(pipeWriter, Options.GetWriterOptions()); 302using var writer = new Utf8JsonWriter(bufferWriter, Options.GetWriterOptions());
System\Text\Json\Writer\Utf8JsonWriter.cs (1)
260internal static Utf8JsonWriter CreateEmptyInstanceForCaching() => new Utf8JsonWriter();
System\Text\Json\Writer\Utf8JsonWriterCache.cs (2)
38writer = new Utf8JsonWriter(bufferWriter, options); 58writer = new Utf8JsonWriter(bufferWriter, options.GetWriterOptions());
412 references to Utf8JsonWriter
Aspire.Dashboard (1)
Components\Dialogs\TextVisualizerDialog.razor.cs (1)
192using var writer = new Utf8JsonWriter(stream, new JsonWriterOptions { Indented = true });
Aspire.Hosting (4)
Publishing\ManifestPublisher.cs (2)
22public Utf8JsonWriter? JsonWriter { get; set; } 48protected async Task WriteManifestAsync(DistributedApplicationModel model, Utf8JsonWriter jsonWriter, CancellationToken cancellationToken)
Publishing\ManifestPublishingContext.cs (2)
18public sealed class ManifestPublishingContext(DistributedApplicationExecutionContext executionContext, string manifestPath, Utf8JsonWriter writer, CancellationToken cancellationToken = default) 33public Utf8JsonWriter Writer { get; } = writer;
Aspire.Hosting.AWS (5)
src\Shared\Utf8JsonWriterExtensions.cs (5)
9/// Extensions to the <see cref="Utf8JsonWriter"/> type. 20public static bool TryWriteStringArray(this Utf8JsonWriter writer, string name, IEnumerable<string>? values) 51public static bool TryWriteBoolean(this Utf8JsonWriter writer, string name, bool? value) 70public static bool TryWriteNumber(this Utf8JsonWriter writer, string name, int? value) 89public static bool TryWriteString(this Utf8JsonWriter writer, string name, string? value)
Aspire.Hosting.Azure.EventHubs (1)
AzureEventHubsExtensions.cs (1)
212using var writer = new Utf8JsonWriter(stream);
Aspire.Hosting.Dapr (5)
src\Shared\Utf8JsonWriterExtensions.cs (5)
9/// Extensions to the <see cref="Utf8JsonWriter"/> type. 20public static bool TryWriteStringArray(this Utf8JsonWriter writer, string name, IEnumerable<string>? values) 51public static bool TryWriteBoolean(this Utf8JsonWriter writer, string name, bool? value) 70public static bool TryWriteNumber(this Utf8JsonWriter writer, string name, int? value) 89public static bool TryWriteString(this Utf8JsonWriter writer, string name, string? value)
Aspire.Hosting.PostgreSQL (1)
PostgresBuilderExtensions.cs (1)
166using var writer = new Utf8JsonWriter(stream);
Aspire.Hosting.Redis (1)
RedisBuilderExtensions.cs (1)
227using var writer = new Utf8JsonWriter(stream);
Aspire.Hosting.Tests (3)
Helpers\JsonDocumentManifestPublisher.cs (1)
22using var writer = new Utf8JsonWriter(stream, new() { Indented = true });
Utils\ManifestUtils.cs (2)
25var writer = new Utf8JsonWriter(ms); 42var writer = new Utf8JsonWriter(ms);
ConfigurationSchemaGenerator (1)
ConfigSchemaEmitter.cs (1)
728public override void Write(Utf8JsonWriter writer, JsonNode? value, JsonSerializerOptions options)
JwtBearerSample (1)
Startup.cs (1)
98using var writer = new Utf8JsonWriter(output);
Microsoft.AspNetCore.Components.Endpoints (1)
Builder\ResourceCollectionUrlEndpoint.cs (1)
99var utf8Writer = new Utf8JsonWriter(content);
Microsoft.AspNetCore.Components.Server (1)
src\Components\Shared\src\ElementReferenceJsonConverter.cs (1)
51public override void Write(Utf8JsonWriter writer, ElementReference value, JsonSerializerOptions options)
Microsoft.AspNetCore.Components.Server.Tests (1)
ElementReferenceJsonConverterTest.cs (1)
28var writer = new Utf8JsonWriter(memoryStream);
Microsoft.AspNetCore.Components.WebAssembly (1)
src\Components\Shared\src\ElementReferenceJsonConverter.cs (1)
51public override void Write(Utf8JsonWriter writer, ElementReference value, JsonSerializerOptions options)
Microsoft.AspNetCore.Components.WebView (2)
src\Components\Shared\src\ElementReferenceJsonConverter.cs (1)
51public override void Write(Utf8JsonWriter writer, ElementReference value, JsonSerializerOptions options)
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
433public override void Write(Utf8JsonWriter writer, Dictionary<string, StaticWebAssetNode> value, JsonSerializerOptions options)
Microsoft.AspNetCore.Grpc.JsonTranscoding (16)
Internal\Json\AnyConverter.cs (2)
64public override void Write(Utf8JsonWriter writer, TMessage value, JsonSerializerOptions options) 104internal static void WriteMessageFields(Utf8JsonWriter writer, IMessage message, GrpcJsonSettings settings, JsonSerializerOptions options)
Internal\Json\BoolConverter.cs (2)
17public override void Write(Utf8JsonWriter writer, bool value, JsonSerializerOptions options) 22public override void WriteAsPropertyName(Utf8JsonWriter writer, bool value, JsonSerializerOptions options)
Internal\Json\ByteStringConverter.cs (1)
19public override void Write(Utf8JsonWriter writer, ByteString value, JsonSerializerOptions options)
Internal\Json\DurationConverter.cs (1)
41public override void Write(Utf8JsonWriter writer, TMessage value, JsonSerializerOptions options)
Internal\Json\EnumConverter.cs (1)
47public override void Write(Utf8JsonWriter writer, TEnum value, JsonSerializerOptions options)
Internal\Json\FieldMaskConverter.cs (1)
40public override void Write(Utf8JsonWriter writer, TMessage value, JsonSerializerOptions options)
Internal\Json\Int64Converter.cs (1)
26public override void Write(Utf8JsonWriter writer, long value, JsonSerializerOptions options)
Internal\Json\ListValueConverter.cs (1)
26public override void Write(Utf8JsonWriter writer, TMessage value, JsonSerializerOptions options)
Internal\Json\NullValueConverter.cs (1)
37public override void Write(Utf8JsonWriter writer, NullValue value, JsonSerializerOptions options)
Internal\Json\StructConverter.cs (1)
26public override void Write(Utf8JsonWriter writer, TMessage value, JsonSerializerOptions options)
Internal\Json\TimestampConverter.cs (1)
40public override void Write(Utf8JsonWriter writer, TMessage value, JsonSerializerOptions options)
Internal\Json\UInt64Converter.cs (1)
27public override void Write(Utf8JsonWriter writer, ulong value, JsonSerializerOptions options)
Internal\Json\ValueConverter.cs (1)
63public override void Write(Utf8JsonWriter writer, TMessage value, JsonSerializerOptions options)
Internal\Json\WrapperConverter.cs (1)
27public override void Write(Utf8JsonWriter writer, TMessage value, JsonSerializerOptions options)
Microsoft.AspNetCore.Hosting (1)
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
433public override void Write(Utf8JsonWriter writer, Dictionary<string, StaticWebAssetNode> value, JsonSerializerOptions options)
Microsoft.AspNetCore.Http.Abstractions.Tests (4)
HttpValidationProblemDetailsJsonConverterTest.cs (1)
29var writer = new Utf8JsonWriter(ms);
ProblemDetailsJsonConverterTest.cs (3)
179using (var writer = new Utf8JsonWriter(stream)) 203using (var writer = new Utf8JsonWriter(stream)) 234using (var writer = new Utf8JsonWriter(stream))
Microsoft.AspNetCore.Http.Connections.Common (3)
NegotiateProtocol.cs (1)
54var writer = reusableWriter.GetJsonWriter();
src\SignalR\common\Shared\ReusableUtf8JsonWriter.cs (2)
16private readonly Utf8JsonWriter _writer; 66public Utf8JsonWriter GetJsonWriter()
Microsoft.AspNetCore.Http.Extensions.Tests (2)
HttpResponseJsonExtensionsTests.cs (1)
84public override void Write(Utf8JsonWriter writer, int value, JsonSerializerOptions options)
RequestDelegateGenerator\SharedTypes.cs (1)
1017public override void Write(Utf8JsonWriter writer, ITodo value, JsonSerializerOptions options)
Microsoft.AspNetCore.Http.Microbenchmarks (1)
src\Http\Http.Extensions\test\RequestDelegateGenerator\SharedTypes.cs (1)
1017public override void Write(Utf8JsonWriter writer, ITodo value, JsonSerializerOptions options)
Microsoft.AspNetCore.Mvc.Core.Test (6)
Formatters\SystemTextJsonInputFormatterTest.cs (2)
228public override void Write(Utf8JsonWriter writer, short value, JsonSerializerOptions options) 241public override void Write(Utf8JsonWriter writer, DateTime value, JsonSerializerOptions options)
Formatters\SystemTextJsonOutputFormatterTest.cs (1)
329public override void Write(Utf8JsonWriter writer, ThrowingFormatterModel value, JsonSerializerOptions options)
Infrastructure\SystemTextJsonResultExecutorTest.cs (1)
54public override void Write(Utf8JsonWriter writer, ThrowingFormatterModel value, JsonSerializerOptions options)
Infrastructure\ValidationProblemDetailsJsonConverterTest.cs (2)
146using Utf8JsonWriter writer = new(stream); 177using Utf8JsonWriter writer = new(stream);
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Infrastructure\DefaultTempDataSerializer.cs (1)
137using var writer = new Utf8JsonWriter(bufferWriter);
Microsoft.AspNetCore.OpenApi (1)
Schemas\OpenApiJsonSchema.cs (1)
48public override void Write(Utf8JsonWriter writer, OpenApiJsonSchema value, JsonSerializerOptions options)
Microsoft.AspNetCore.OpenApi.Tests (1)
Services\OpenApiSchemaService\OpenApiSchemaService.ParameterSchemas.cs (1)
512public override void Write(Utf8JsonWriter writer, CustomType value, JsonSerializerOptions options)
Microsoft.AspNetCore.Server.Kestrel.Core (5)
Http2Limits.cs (1)
199internal void Serialize(Utf8JsonWriter writer)
Http3Limits.cs (1)
57internal void Serialize(Utf8JsonWriter writer)
Internal\Infrastructure\KestrelEventSource.cs (1)
237var writer = new Utf8JsonWriter(bufferWriter);
KestrelServerLimits.cs (1)
259internal void Serialize(Utf8JsonWriter writer)
KestrelServerOptions.cs (1)
333internal void Serialize(Utf8JsonWriter writer)
Microsoft.AspNetCore.SignalR.Common (4)
Protocol\HandshakeProtocol.cs (2)
62var writer = reusableWriter.GetJsonWriter(); 90var writer = reusableWriter.GetJsonWriter();
src\SignalR\common\Shared\ReusableUtf8JsonWriter.cs (2)
16private readonly Utf8JsonWriter _writer; 66public Utf8JsonWriter GetJsonWriter()
Microsoft.AspNetCore.SignalR.Protocols.Json (17)
Protocol\JsonHubProtocol.cs (15)
522var writer = reusableWriter.GetJsonWriter(); 579private static void WriteHeaders(Utf8JsonWriter writer, HubInvocationMessage message) 592private void WriteCompletionMessage(CompletionMessage message, Utf8JsonWriter writer) 620private static void WriteCancelInvocationMessage(CancelInvocationMessage message, Utf8JsonWriter writer) 625private void WriteStreamItemMessage(StreamItemMessage message, Utf8JsonWriter writer) 640private void WriteInvocationMessage(InvocationMessage message, Utf8JsonWriter writer) 650private void WriteStreamInvocationMessage(StreamInvocationMessage message, Utf8JsonWriter writer) 660private static void WriteCloseMessage(CloseMessage message, Utf8JsonWriter writer) 673private static void WriteAckMessage(AckMessage message, Utf8JsonWriter writer) 678private static void WriteSequenceMessage(SequenceMessage message, Utf8JsonWriter writer) 683private void WriteArguments(object?[] arguments, Utf8JsonWriter writer) 700private static void WriteStreamIds(string[]? streamIds, Utf8JsonWriter writer) 715private static void WriteInvocationId(HubInvocationMessage message, Utf8JsonWriter writer) 723private static void WriteMessageType(Utf8JsonWriter writer, int type) 917private void SerializeObject(Utf8JsonWriter writer, object? value) => JsonSerializer.Serialize(writer, value, _payloadSerializerOptions);
src\SignalR\common\Shared\ReusableUtf8JsonWriter.cs (2)
16private readonly Utf8JsonWriter _writer; 66public Utf8JsonWriter GetJsonWriter()
Microsoft.AspNetCore.StaticAssets.Tests (1)
StaticAssetsIntegrationTests.cs (1)
539using var writer = new Utf8JsonWriter(stream);
Microsoft.CodeAnalysis.LanguageServer.Protocol (18)
Protocol\Converters\DocumentUriConverter.cs (1)
19public override void Write(Utf8JsonWriter writer, Uri value, JsonSerializerOptions options)
Protocol\Converters\FormattingOptionsConverter.cs (1)
115public override void Write(Utf8JsonWriter writer, FormattingOptions value, JsonSerializerOptions options)
Protocol\Converters\InitializeParamsWorkspaceFoldersConverter.cs (1)
34public override void Write(Utf8JsonWriter writer, WorkspaceFolder[]? value, JsonSerializerOptions options)
Protocol\Converters\NaturalObjectConverter.cs (1)
18public override void Write(Utf8JsonWriter writer, object value, JsonSerializerOptions options)
Protocol\Converters\ParameterInformationConverter.cs (1)
43public override void Write(Utf8JsonWriter writer, ParameterInformation value, JsonSerializerOptions options)
Protocol\Converters\StringEnumConverter.cs (1)
52public override void Write(Utf8JsonWriter writer, TStringEnumType value, JsonSerializerOptions options)
Protocol\Converters\SumConverter.cs (1)
257public override void Write(Utf8JsonWriter writer, T value, JsonSerializerOptions options)
Protocol\Converters\TextDocumentSyncConverter.cs (1)
45public override void Write(Utf8JsonWriter writer, TextDocumentSyncOptions value, JsonSerializerOptions options)
Protocol\Extensions\Converters\VSExtensionConverter.cs (1)
28public override void Write(Utf8JsonWriter writer, TBase value, JsonSerializerOptions options)
Protocol\Internal\Converters\ClassifiedTextElementConverter.cs (1)
57public override void Write(Utf8JsonWriter writer, ClassifiedTextElement value, JsonSerializerOptions options)
Protocol\Internal\Converters\ClassifiedTextRunConverter.cs (1)
37public override void Write(Utf8JsonWriter writer, ClassifiedTextRun value, JsonSerializerOptions options)
Protocol\Internal\Converters\ContainerElementConverter.cs (1)
67public override void Write(Utf8JsonWriter writer, ContainerElement value, JsonSerializerOptions options)
Protocol\Internal\Converters\ImageElementConverter.cs (1)
58public override void Write(Utf8JsonWriter writer, ImageElement value, JsonSerializerOptions options)
Protocol\Internal\Converters\ImageIdConverter.cs (1)
36public override void Write(Utf8JsonWriter writer, ImageId value, JsonSerializerOptions options)
Protocol\Internal\Converters\ObjectContentConverter.cs (1)
83public override void Write(Utf8JsonWriter writer, object? value, JsonSerializerOptions options)
Protocol\Internal\Converters\RegexConverter.cs (1)
23public override void Write(Utf8JsonWriter writer, Regex value, JsonSerializerOptions options)
Protocol\Internal\Efficiency\OptimizedVSCompletionListJsonConverter.cs (2)
21public override void Write(Utf8JsonWriter writer, OptimizedVSCompletionList value, JsonSerializerOptions options) 96private static void WriteCompletionItem(Utf8JsonWriter writer, CompletionItem completionItem, JsonSerializerOptions options, Dictionary<object, string> itemRawJsonCache)
Microsoft.Extensions.AI.Abstractions (2)
ChatCompletion\ChatFinishReason.cs (1)
89public override void Write(Utf8JsonWriter writer, ChatFinishReason value, JsonSerializerOptions options) =>
ChatCompletion\ChatRole.cs (1)
97public override void Write(Utf8JsonWriter writer, ChatRole value, JsonSerializerOptions options) =>
Microsoft.Extensions.AI.Abstractions.Tests (2)
test\Shared\JsonSchemaExporter\TestTypes.cs (2)
955public override void Write(Utf8JsonWriter writer, PocoWithCustomConverter value, JsonSerializerOptions options) => 970public override void Write(Utf8JsonWriter writer, int value, JsonSerializerOptions options)
Microsoft.Extensions.Caching.Hybrid (1)
Internal\DefaultJsonSerializerFactory.cs (1)
33using var writer = new Utf8JsonWriter(target);
Microsoft.Extensions.DependencyModel (21)
DependencyContextWriter.cs (21)
26using (var jsonWriter = new Utf8JsonWriter(stream, options)) 41private static void WriteRuntimeTargetInfo(DependencyContext context, Utf8JsonWriter jsonWriter) 59private static void WriteRuntimeGraph(DependencyContext context, Utf8JsonWriter jsonWriter) 74private static void WriteCompilationOptions(CompilationOptions compilationOptions, Utf8JsonWriter jsonWriter) 100private static void AddStringPropertyIfNotNull(string name, string? value, Utf8JsonWriter jsonWriter) 108private static void AddBooleanPropertyIfNotNull(string name, bool? value, Utf8JsonWriter jsonWriter) 116private static void WriteTargets(DependencyContext context, Utf8JsonWriter jsonWriter) 132private static void WriteTarget(string key, IReadOnlyList<Library> libraries, Utf8JsonWriter jsonWriter) 144private static void WritePortableTarget(string key, IReadOnlyList<RuntimeLibrary> runtimeLibraries, IReadOnlyList<CompilationLibrary> compilationLibraries, Utf8JsonWriter jsonWriter) 176private static void AddCompilationAssemblies(IEnumerable<string> compilationAssemblies, Utf8JsonWriter jsonWriter) 186private static void AddAssets(string key, RuntimeAssetGroup? group, Utf8JsonWriter jsonWriter) 196private static void AddDependencies(IReadOnlyCollection<Dependency> dependencies, Utf8JsonWriter jsonWriter) 211private static void AddResourceAssemblies(IReadOnlyList<ResourceAssembly> resourceAssemblies, Utf8JsonWriter jsonWriter) 230private static void WriteTargetLibrary(string key, Library library, Utf8JsonWriter jsonWriter) 258private static void WritePortableTargetLibrary(string key, RuntimeLibrary? runtimeLibrary, CompilationLibrary? compilationLibrary, Utf8JsonWriter jsonWriter) 306private static bool AddRuntimeSpecificAssetGroups(string assetType, IEnumerable<RuntimeAssetGroup> assetGroups, bool wroteObjectStart, Utf8JsonWriter jsonWriter) 347private static void AddRuntimeSpecificAssets(IEnumerable<RuntimeFile> assets, string? runtime, string? assetType, Utf8JsonWriter jsonWriter) 370private static void WriteAssetList(string key, IEnumerable<string> assetPaths, Utf8JsonWriter jsonWriter) 381private static void WriteAssetList(string key, IEnumerable<RuntimeFile> runtimeFiles, Utf8JsonWriter jsonWriter) 405private static void WriteLibraries(DependencyContext context, Utf8JsonWriter jsonWriter) 419private static void WriteLibrary(string key, Library library, Utf8JsonWriter jsonWriter)
Microsoft.Extensions.Logging.Console (3)
JsonConsoleFormatter.cs (3)
63using (var writer = new Utf8JsonWriter(output, FormatterOptions.JsonWriterOptions)) 140private void WriteScopeInformation(Utf8JsonWriter writer, IExternalScopeProvider? scopeProvider) 166private static void WriteItem(Utf8JsonWriter writer, KeyValuePair<string, object?> item)
Microsoft.Extensions.Logging.EventSource (1)
EventSourceLogger.cs (1)
259using var writer = new Utf8JsonWriter(stream);
Microsoft.JSInterop (7)
Implementation\JSObjectReferenceJsonWorker.cs (2)
58/// <param name="writer">The <see cref="Utf8JsonWriter"/>.</param> 60public static void WriteJSObjectReference(Utf8JsonWriter writer, JSObjectReference objectReference)
Infrastructure\ByteArrayJsonConverter.cs (1)
77public override void Write(Utf8JsonWriter writer, byte[] value, JsonSerializerOptions options)
Infrastructure\DotNetObjectReferenceJsonConverter.cs (1)
55public override void Write(Utf8JsonWriter writer, DotNetObjectReference<TValue> value, JsonSerializerOptions options)
Infrastructure\DotNetStreamReferenceJsonConverter.cs (1)
23public override void Write(Utf8JsonWriter writer, DotNetStreamReference value, JsonSerializerOptions options)
Infrastructure\JSObjectReferenceJsonConverter.cs (1)
28public override void Write(Utf8JsonWriter writer, IJSObjectReference value, JsonSerializerOptions options)
Infrastructure\JSStreamReferenceJsonConverter.cs (1)
67public override void Write(Utf8JsonWriter writer, IJSStreamReference value, JsonSerializerOptions options)
Microsoft.JSInterop.WebAssembly (1)
WebAssemblyJSObjectReferenceJsonConverter.cs (1)
32public override void Write(Utf8JsonWriter writer, IJSObjectReference value, JsonSerializerOptions options)
Microsoft.ML.AutoML (4)
SweepableEstimator\Converter\MultiModelPipelineConverter.cs (1)
24public override void Write(Utf8JsonWriter writer, MultiModelPipeline value, JsonSerializerOptions options)
SweepableEstimator\Converter\SweepableEstimatorConverter.cs (1)
27public override void Write(Utf8JsonWriter writer, SweepableEstimator value, JsonSerializerOptions options)
SweepableEstimator\Converter\SweepableEstimatorPipelineConverter.cs (1)
25public override void Write(Utf8JsonWriter writer, SweepableEstimatorPipeline value, JsonSerializerOptions options)
SweepableEstimator\Converter\SweepablePipelineConverter.cs (1)
25public override void Write(Utf8JsonWriter writer, SweepablePipeline value, JsonSerializerOptions options)
Microsoft.ML.AutoML.Tests (2)
Utils\DoubleToDecimalConverter.cs (1)
18public override void Write(Utf8JsonWriter writer, double value, JsonSerializerOptions options)
Utils\FloatToDecimalConverter.cs (1)
18public override void Write(Utf8JsonWriter writer, float value, JsonSerializerOptions options)
Microsoft.ML.SearchSpace (5)
Converter\ChoiceOptionConverter.cs (1)
35public override void Write(Utf8JsonWriter writer, ChoiceOption value, JsonSerializerOptions options)
Converter\NumericOptionConverter.cs (1)
50public override void Write(Utf8JsonWriter writer, UniformNumericOption value, JsonSerializerOptions options)
Converter\OptionConverter.cs (1)
46public override void Write(Utf8JsonWriter writer, OptionBase value, JsonSerializerOptions options)
Converter\ParameterConverter.cs (1)
54public override void Write(Utf8JsonWriter writer, Parameter value, JsonSerializerOptions options)
Converter\SearchSpaceConverter.cs (1)
23public override void Write(Utf8JsonWriter writer, SearchSpace value, JsonSerializerOptions options)
Microsoft.ML.SearchSpace.Tests (2)
SearchSpaceTest.cs (2)
370public override void Write(Utf8JsonWriter writer, double value, JsonSerializerOptions options) 381public override void Write(Utf8JsonWriter writer, float value, JsonSerializerOptions options)
Microsoft.ML.Tokenizers (4)
Utils\StringSpanOrdinalKey.cs (3)
139public override void WriteAsPropertyName(Utf8JsonWriter writer, StringSpanOrdinalKey value, JsonSerializerOptions options) => 143public override void Write(Utf8JsonWriter writer, StringSpanOrdinalKey value, JsonSerializerOptions options) => writer.WriteStringValue(value.Data!); 169public override void Write(Utf8JsonWriter writer, Vocabulary value, JsonSerializerOptions options) => throw new NotImplementedException();
Utils\TokenizerExtensions.cs (1)
68public override void Write(Utf8JsonWriter writer, SortedDictionary<int, string> value, JsonSerializerOptions options)
Shared.Tests (2)
JsonSchemaExporter\TestTypes.cs (2)
955public override void Write(Utf8JsonWriter writer, PocoWithCustomConverter value, JsonSerializerOptions options) => 970public override void Write(Utf8JsonWriter writer, int value, JsonSerializerOptions options)
SignalRSamples (1)
Startup.cs (1)
55await using (var writer = new Utf8JsonWriter(context.Response.BodyWriter, _jsonWriterOptions))
System.Memory.Data (1)
System\BinaryDataConverter.cs (1)
24public override void Write(Utf8JsonWriter writer, BinaryData value, JsonSerializerOptions options)
System.Text.Json (243)
System\Text\Json\Document\JsonDocument.cs (6)
104public void WriteTo(Utf8JsonWriter writer) 798Utf8JsonWriter writer) 834private void WriteComplexElement(int index, Utf8JsonWriter writer) 909internal void WritePropertyName(int index, Utf8JsonWriter writer) 918private void WritePropertyName(in DbRow row, Utf8JsonWriter writer) 932private void WriteString(in DbRow row, Utf8JsonWriter writer)
System\Text\Json\Document\JsonElement.cs (2)
1547public void WriteTo(Utf8JsonWriter writer) 1559internal void WritePropertyNameTo(Utf8JsonWriter writer)
System\Text\Json\Document\JsonProperty.cs (1)
115public void WriteTo(Utf8JsonWriter writer)
System\Text\Json\Nodes\JsonArray.cs (1)
264public override void WriteTo(Utf8JsonWriter writer, JsonSerializerOptions? options = null)
System\Text\Json\Nodes\JsonNode.To.cs (5)
25Utf8JsonWriter writer = Utf8JsonWriterCache.RentWriterAndBuffer(writerOptions, defaultBufferSize, out PooledByteBufferWriter output); 58Utf8JsonWriter writer = Utf8JsonWriterCache.RentWriterAndBuffer(new JsonWriterOptions { Indented = true }, JsonSerializerOptions.BufferSizeDefault, out PooledByteBufferWriter output); 72/// Write the <see cref="JsonNode"/> into the provided <see cref="Utf8JsonWriter"/> as JSON. 74/// <param name="writer">The <see cref="Utf8JsonWriter"/>.</param> 79public abstract void WriteTo(Utf8JsonWriter writer, JsonSerializerOptions? options = null);
System\Text\Json\Nodes\JsonObject.cs (1)
132public override void WriteTo(Utf8JsonWriter writer, JsonSerializerOptions? options = null)
System\Text\Json\Nodes\JsonValue.cs (1)
137Utf8JsonWriter writer = Utf8JsonWriterCache.RentWriterAndBuffer(
System\Text\Json\Nodes\JsonValueOfElement.cs (1)
197public override void WriteTo(Utf8JsonWriter writer, JsonSerializerOptions? options = null)
System\Text\Json\Nodes\JsonValueOfTCustomized.cs (2)
29public override void WriteTo(Utf8JsonWriter writer, JsonSerializerOptions? options = null) 52Utf8JsonWriter writer = Utf8JsonWriterCache.RentWriterAndBuffer(options: default, JsonSerializerOptions.BufferSizeDefault, out PooledByteBufferWriter output);
System\Text\Json\Nodes\JsonValueOfTPrimitive.cs (1)
42public override void WriteTo(Utf8JsonWriter writer, JsonSerializerOptions? options = null)
System\Text\Json\Serialization\Converters\CastingConverter.cs (5)
47public override void Write(Utf8JsonWriter writer, T value, JsonSerializerOptions options) 57internal override bool OnTryWrite(Utf8JsonWriter writer, T value, JsonSerializerOptions options, ref WriteStack state) 66public override void WriteAsPropertyName(Utf8JsonWriter writer, [DisallowNull] T value, JsonSerializerOptions options) 69internal override void WriteAsPropertyNameCore(Utf8JsonWriter writer, T value, JsonSerializerOptions options, bool isWritingExtensionDataProperty) 75internal override void WriteNumberWithCustomHandling(Utf8JsonWriter writer, T? value, JsonNumberHandling handling)
System\Text\Json\Serialization\Converters\Collection\ArrayConverter.cs (1)
34protected override bool OnWriteResume(Utf8JsonWriter writer, TElement[] array, JsonSerializerOptions options, ref WriteStack state)
System\Text\Json\Serialization\Converters\Collection\DictionaryDefaultConverter.cs (1)
22Utf8JsonWriter writer,
System\Text\Json\Serialization\Converters\Collection\DictionaryOfTKeyTValueConverter.cs (1)
26Utf8JsonWriter writer,
System\Text\Json\Serialization\Converters\Collection\IAsyncEnumerableOfTConverter.cs (2)
36internal override bool OnTryWrite(Utf8JsonWriter writer, TAsyncEnumerable value, JsonSerializerOptions options, ref WriteStack state) 47protected override bool OnWriteResume(Utf8JsonWriter writer, TAsyncEnumerable value, JsonSerializerOptions options, ref WriteStack state)
System\Text\Json\Serialization\Converters\Collection\IDictionaryConverter.cs (1)
42protected internal override bool OnWriteResume(Utf8JsonWriter writer, TDictionary value, JsonSerializerOptions options, ref WriteStack state)
System\Text\Json\Serialization\Converters\Collection\IEnumerableConverter.cs (1)
40Utf8JsonWriter writer,
System\Text\Json\Serialization\Converters\Collection\IEnumerableDefaultConverter.cs (1)
17protected override bool OnWriteResume(Utf8JsonWriter writer, TCollection value, JsonSerializerOptions options, ref WriteStack state)
System\Text\Json\Serialization\Converters\Collection\IListConverter.cs (1)
39protected override bool OnWriteResume(Utf8JsonWriter writer, TCollection value, JsonSerializerOptions options, ref WriteStack state)
System\Text\Json\Serialization\Converters\Collection\JsonCollectionConverter.cs (2)
292Utf8JsonWriter writer, 346protected abstract bool OnWriteResume(Utf8JsonWriter writer, TCollection value, JsonSerializerOptions options, ref WriteStack state);
System\Text\Json\Serialization\Converters\Collection\JsonDictionaryConverter.cs (2)
18protected internal abstract bool OnWriteResume(Utf8JsonWriter writer, TDictionary dictionary, JsonSerializerOptions options, ref WriteStack state); 335Utf8JsonWriter writer,
System\Text\Json\Serialization\Converters\Collection\ListOfTConverter.cs (1)
36protected override bool OnWriteResume(Utf8JsonWriter writer, TCollection value, JsonSerializerOptions options, ref WriteStack state)
System\Text\Json\Serialization\Converters\Collection\MemoryConverter.cs (1)
47protected override bool OnWriteResume(Utf8JsonWriter writer, Memory<T> value, JsonSerializerOptions options, ref WriteStack state)
System\Text\Json\Serialization\Converters\Collection\ReadOnlyMemoryConverter.cs (2)
47protected override bool OnWriteResume(Utf8JsonWriter writer, ReadOnlyMemory<T> value, JsonSerializerOptions options, ref WriteStack state) 52internal static bool OnWriteResume(Utf8JsonWriter writer, ReadOnlySpan<T> value, JsonSerializerOptions options, ref WriteStack state)
System\Text\Json\Serialization\Converters\Collection\StackOrQueueConverter.cs (1)
43protected sealed override bool OnWriteResume(Utf8JsonWriter writer, TCollection value, JsonSerializerOptions options, ref WriteStack state)
System\Text\Json\Serialization\Converters\FSharp\FSharpOptionConverter.cs (2)
53internal override bool OnTryWrite(Utf8JsonWriter writer, TOption value, JsonSerializerOptions options, ref WriteStack state) 70public override void Write(Utf8JsonWriter writer, TOption value, JsonSerializerOptions options)
System\Text\Json\Serialization\Converters\FSharp\FSharpValueOptionConverter.cs (2)
53internal override bool OnTryWrite(Utf8JsonWriter writer, TValueOption value, JsonSerializerOptions options, ref WriteStack state) 71public override void Write(Utf8JsonWriter writer, TValueOption value, JsonSerializerOptions options)
System\Text\Json\Serialization\Converters\JsonMetadataServicesConverter.cs (1)
51internal override bool OnTryWrite(Utf8JsonWriter writer, T value, JsonSerializerOptions options, ref WriteStack state)
System\Text\Json\Serialization\Converters\Node\JsonArrayConverter.cs (1)
12public override void Write(Utf8JsonWriter writer, JsonArray? value, JsonSerializerOptions options)
System\Text\Json\Serialization\Converters\Node\JsonNodeConverter.cs (1)
27public override void Write(Utf8JsonWriter writer, JsonNode? value, JsonSerializerOptions options)
System\Text\Json\Serialization\Converters\Node\JsonObjectConverter.cs (1)
37public override void Write(Utf8JsonWriter writer, JsonObject? value, JsonSerializerOptions options)
System\Text\Json\Serialization\Converters\Node\JsonValueConverter.cs (1)
12public override void Write(Utf8JsonWriter writer, JsonValue? value, JsonSerializerOptions options)
System\Text\Json\Serialization\Converters\Object\ObjectConverter.cs (3)
32public sealed override void Write(Utf8JsonWriter writer, object? value, JsonSerializerOptions options) 44public sealed override void WriteAsPropertyName(Utf8JsonWriter writer, object value, JsonSerializerOptions options) 49internal sealed override void WriteAsPropertyNameCore(Utf8JsonWriter writer, object value, JsonSerializerOptions options, bool isWritingExtensionDataProperty)
System\Text\Json\Serialization\Converters\Object\ObjectDefaultConverter.cs (1)
317Utf8JsonWriter writer,
System\Text\Json\Serialization\Converters\Value\BooleanConverter.cs (2)
18public override void Write(Utf8JsonWriter writer, bool value, JsonSerializerOptions options) 36internal override void WriteAsPropertyNameCore(Utf8JsonWriter writer, bool value, JsonSerializerOptions options, bool isWritingExtensionDataProperty)
System\Text\Json\Serialization\Converters\Value\ByteArrayConverter.cs (1)
20public override void Write(Utf8JsonWriter writer, byte[]? value, JsonSerializerOptions options)
System\Text\Json\Serialization\Converters\Value\ByteConverter.cs (3)
22public override void Write(Utf8JsonWriter writer, byte value, JsonSerializerOptions options) 33internal override void WriteAsPropertyNameCore(Utf8JsonWriter writer, byte value, JsonSerializerOptions options, bool isWritingExtensionDataProperty) 48internal override void WriteNumberWithCustomHandling(Utf8JsonWriter writer, byte value, JsonNumberHandling handling)
System\Text\Json\Serialization\Converters\Value\CharConverter.cs (2)
36public override void Write(Utf8JsonWriter writer, char value, JsonSerializerOptions options) 53internal override void WriteAsPropertyNameCore(Utf8JsonWriter writer, char value, JsonSerializerOptions options, bool isWritingExtensionDataProperty)
System\Text\Json\Serialization\Converters\Value\DateOnlyConverter.cs (2)
58public override void Write(Utf8JsonWriter writer, DateOnly value, JsonSerializerOptions options) 66internal override void WriteAsPropertyNameCore(Utf8JsonWriter writer, DateOnly value, JsonSerializerOptions options, bool isWritingExtensionDataProperty)
System\Text\Json\Serialization\Converters\Value\DateTimeConverter.cs (2)
16public override void Write(Utf8JsonWriter writer, DateTime value, JsonSerializerOptions options) 27internal override void WriteAsPropertyNameCore(Utf8JsonWriter writer, DateTime value, JsonSerializerOptions options, bool isWritingExtensionDataProperty)
System\Text\Json\Serialization\Converters\Value\DateTimeOffsetConverter.cs (2)
16public override void Write(Utf8JsonWriter writer, DateTimeOffset value, JsonSerializerOptions options) 27internal override void WriteAsPropertyNameCore(Utf8JsonWriter writer, DateTimeOffset value, JsonSerializerOptions options, bool isWritingExtensionDataProperty)
System\Text\Json\Serialization\Converters\Value\DecimalConverter.cs (3)
21public override void Write(Utf8JsonWriter writer, decimal value, JsonSerializerOptions options) 32internal override void WriteAsPropertyNameCore(Utf8JsonWriter writer, decimal value, JsonSerializerOptions options, bool isWritingExtensionDataProperty) 48internal override void WriteNumberWithCustomHandling(Utf8JsonWriter writer, decimal value, JsonNumberHandling handling)
System\Text\Json\Serialization\Converters\Value\DoubleConverter.cs (3)
22public override void Write(Utf8JsonWriter writer, double value, JsonSerializerOptions options) 33internal override void WriteAsPropertyNameCore(Utf8JsonWriter writer, double value, JsonSerializerOptions options, bool isWritingExtensionDataProperty) 55internal override void WriteNumberWithCustomHandling(Utf8JsonWriter writer, double value, JsonNumberHandling handling)
System\Text\Json\Serialization\Converters\Value\EnumConverter.cs (2)
132public override void Write(Utf8JsonWriter writer, T value, JsonSerializerOptions options) 194internal override void WriteAsPropertyNameCore(Utf8JsonWriter writer, T value, JsonSerializerOptions options, bool isWritingExtensionDataProperty)
System\Text\Json\Serialization\Converters\Value\GuidConverter.cs (2)
17public override void Write(Utf8JsonWriter writer, Guid value, JsonSerializerOptions options) 28internal override void WriteAsPropertyNameCore(Utf8JsonWriter writer, Guid value, JsonSerializerOptions options, bool isWritingExtensionDataProperty)
System\Text\Json\Serialization\Converters\Value\HalfConverter.cs (5)
31public override void Write(Utf8JsonWriter writer, Half value, JsonSerializerOptions options) 65private static void WriteCore(Utf8JsonWriter writer, Half value) 78internal override void WriteAsPropertyNameCore(Utf8JsonWriter writer, Half value, JsonSerializerOptions options, bool isWritingExtensionDataProperty) 112internal override void WriteNumberWithCustomHandling(Utf8JsonWriter writer, Half value, JsonNumberHandling handling) 146private static void WriteFloatingPointConstant(Utf8JsonWriter writer, Half value)
System\Text\Json\Serialization\Converters\Value\Int128Converter.cs (4)
31public override void Write(Utf8JsonWriter writer, Int128 value, JsonSerializerOptions options) 59private static void WriteCore(Utf8JsonWriter writer, Int128 value) 72internal override void WriteAsPropertyNameCore(Utf8JsonWriter writer, Int128 value, JsonSerializerOptions options, bool isWritingExtensionDataProperty) 90internal override void WriteNumberWithCustomHandling(Utf8JsonWriter writer, Int128 value, JsonNumberHandling handling)
System\Text\Json\Serialization\Converters\Value\Int16Converter.cs (3)
22public override void Write(Utf8JsonWriter writer, short value, JsonSerializerOptions options) 34internal override void WriteAsPropertyNameCore(Utf8JsonWriter writer, short value, JsonSerializerOptions options, bool isWritingExtensionDataProperty) 50internal override void WriteNumberWithCustomHandling(Utf8JsonWriter writer, short value, JsonNumberHandling handling)
System\Text\Json\Serialization\Converters\Value\Int32Converter.cs (3)
22public override void Write(Utf8JsonWriter writer, int value, JsonSerializerOptions options) 34internal override void WriteAsPropertyNameCore(Utf8JsonWriter writer, int value, JsonSerializerOptions options, bool isWritingExtensionDataProperty) 50internal override void WriteNumberWithCustomHandling(Utf8JsonWriter writer, int value, JsonNumberHandling handling)
System\Text\Json\Serialization\Converters\Value\Int64Converter.cs (3)
22public override void Write(Utf8JsonWriter writer, long value, JsonSerializerOptions options) 33internal override void WriteAsPropertyNameCore(Utf8JsonWriter writer, long value, JsonSerializerOptions options, bool isWritingExtensionDataProperty) 49internal override void WriteNumberWithCustomHandling(Utf8JsonWriter writer, long value, JsonNumberHandling handling)
System\Text\Json\Serialization\Converters\Value\JsonDocumentConverter.cs (1)
18public override void Write(Utf8JsonWriter writer, JsonDocument? value, JsonSerializerOptions options)
System\Text\Json\Serialization\Converters\Value\JsonElementConverter.cs (1)
16public override void Write(Utf8JsonWriter writer, JsonElement value, JsonSerializerOptions options)
System\Text\Json\Serialization\Converters\Value\JsonPrimitiveConverter.cs (1)
16public sealed override void WriteAsPropertyName(Utf8JsonWriter writer, [DisallowNull] T value, JsonSerializerOptions options)
System\Text\Json\Serialization\Converters\Value\MemoryByteConverter.cs (1)
18public override void Write(Utf8JsonWriter writer, Memory<byte> value, JsonSerializerOptions options)
System\Text\Json\Serialization\Converters\Value\NullableConverter.cs (3)
50internal override bool OnTryWrite(Utf8JsonWriter writer, T? value, JsonSerializerOptions options, ref WriteStack state) 73public override void Write(Utf8JsonWriter writer, T? value, JsonSerializerOptions options) 96internal override void WriteNumberWithCustomHandling(Utf8JsonWriter writer, T? value, JsonNumberHandling handling)
System\Text\Json\Serialization\Converters\Value\ReadOnlyMemoryByteConverter.cs (1)
18public override void Write(Utf8JsonWriter writer, ReadOnlyMemory<byte> value, JsonSerializerOptions options)
System\Text\Json\Serialization\Converters\Value\SByteConverter.cs (3)
22public override void Write(Utf8JsonWriter writer, sbyte value, JsonSerializerOptions options) 33internal override void WriteAsPropertyNameCore(Utf8JsonWriter writer, sbyte value, JsonSerializerOptions options, bool isWritingExtensionDataProperty) 49internal override void WriteNumberWithCustomHandling(Utf8JsonWriter writer, sbyte value, JsonNumberHandling handling)
System\Text\Json\Serialization\Converters\Value\SingleConverter.cs (3)
23public override void Write(Utf8JsonWriter writer, float value, JsonSerializerOptions options) 34internal override void WriteAsPropertyNameCore(Utf8JsonWriter writer, float value, JsonSerializerOptions options, bool isWritingExtensionDataProperty) 56internal override void WriteNumberWithCustomHandling(Utf8JsonWriter writer, float value, JsonNumberHandling handling)
System\Text\Json\Serialization\Converters\Value\StringConverter.cs (2)
17public override void Write(Utf8JsonWriter writer, string? value, JsonSerializerOptions options) 36internal override void WriteAsPropertyNameCore(Utf8JsonWriter writer, string value, JsonSerializerOptions options, bool isWritingExtensionDataProperty)
System\Text\Json\Serialization\Converters\Value\TimeOnlyConverter.cs (2)
79public override void Write(Utf8JsonWriter writer, TimeOnly value, JsonSerializerOptions options) 89internal override void WriteAsPropertyNameCore(Utf8JsonWriter writer, TimeOnly value, JsonSerializerOptions options, bool isWritingExtensionDataProperty)
System\Text\Json\Serialization\Converters\Value\TimeSpanConverter.cs (2)
77public override void Write(Utf8JsonWriter writer, TimeSpan value, JsonSerializerOptions options) 87internal override void WriteAsPropertyNameCore(Utf8JsonWriter writer, TimeSpan value, JsonSerializerOptions options, bool isWritingExtensionDataProperty)
System\Text\Json\Serialization\Converters\Value\UInt128Converter.cs (4)
31public override void Write(Utf8JsonWriter writer, UInt128 value, JsonSerializerOptions options) 59private static void WriteCore(Utf8JsonWriter writer, UInt128 value) 72internal override void WriteAsPropertyNameCore(Utf8JsonWriter writer, UInt128 value, JsonSerializerOptions options, bool isWritingExtensionDataProperty) 90internal override void WriteNumberWithCustomHandling(Utf8JsonWriter writer, UInt128 value, JsonNumberHandling handling)
System\Text\Json\Serialization\Converters\Value\UInt16Converter.cs (3)
22public override void Write(Utf8JsonWriter writer, ushort value, JsonSerializerOptions options) 34internal override void WriteAsPropertyNameCore(Utf8JsonWriter writer, ushort value, JsonSerializerOptions options, bool isWritingExtensionDataProperty) 50internal override void WriteNumberWithCustomHandling(Utf8JsonWriter writer, ushort value, JsonNumberHandling handling)
System\Text\Json\Serialization\Converters\Value\UInt32Converter.cs (3)
22public override void Write(Utf8JsonWriter writer, uint value, JsonSerializerOptions options) 34internal override void WriteAsPropertyNameCore(Utf8JsonWriter writer, uint value, JsonSerializerOptions options, bool isWritingExtensionDataProperty) 50internal override void WriteNumberWithCustomHandling(Utf8JsonWriter writer, uint value, JsonNumberHandling handling)
System\Text\Json\Serialization\Converters\Value\UInt64Converter.cs (3)
22public override void Write(Utf8JsonWriter writer, ulong value, JsonSerializerOptions options) 33internal override void WriteAsPropertyNameCore(Utf8JsonWriter writer, ulong value, JsonSerializerOptions options, bool isWritingExtensionDataProperty) 49internal override void WriteNumberWithCustomHandling(Utf8JsonWriter writer, ulong value, JsonNumberHandling handling)
System\Text\Json\Serialization\Converters\Value\UnsupportedTypeConverter.cs (1)
20public override void Write(Utf8JsonWriter writer, T value, JsonSerializerOptions options) =>
System\Text\Json\Serialization\Converters\Value\UriConverter.cs (2)
17public override void Write(Utf8JsonWriter writer, Uri? value, JsonSerializerOptions options) 46internal override void WriteAsPropertyNameCore(Utf8JsonWriter writer, Uri value, JsonSerializerOptions options, bool isWritingExtensionDataProperty)
System\Text\Json\Serialization\Converters\Value\VersionConverter.cs (2)
81public override void Write(Utf8JsonWriter writer, Version? value, JsonSerializerOptions options) 108internal override void WriteAsPropertyNameCore(Utf8JsonWriter writer, Version value, JsonSerializerOptions options, bool isWritingExtensionDataProperty)
System\Text\Json\Serialization\JsonConverter.cs (7)
189internal static bool ShouldFlush(ref WriteStack state, Utf8JsonWriter writer) 209internal abstract void WriteAsObject(Utf8JsonWriter writer, object? value, JsonSerializerOptions options); 210internal abstract bool OnTryWriteAsObject(Utf8JsonWriter writer, object? value, JsonSerializerOptions options, ref WriteStack state); 211internal abstract bool TryWriteAsObject(Utf8JsonWriter writer, object? value, JsonSerializerOptions options, ref WriteStack state); 212internal abstract void WriteAsPropertyNameAsObject(Utf8JsonWriter writer, object? value, JsonSerializerOptions options); 213internal abstract void WriteAsPropertyNameCoreAsObject(Utf8JsonWriter writer, object? value, JsonSerializerOptions options, bool isWritingExtensionDataProperty); 214internal abstract void WriteNumberWithCustomHandlingAsObject(Utf8JsonWriter writer, object? value, JsonNumberHandling handling);
System\Text\Json\Serialization\JsonConverter.MetadataHandling.cs (1)
138internal bool TryHandleSerializedObjectReference(Utf8JsonWriter writer, object value, JsonSerializerOptions options, JsonConverter? polymorphicConverter, ref WriteStack state)
System\Text\Json\Serialization\JsonConverterFactory.cs (6)
105internal sealed override void WriteAsObject(Utf8JsonWriter writer, object? value, JsonSerializerOptions options) 113Utf8JsonWriter writer, 124Utf8JsonWriter writer, 134internal sealed override void WriteAsPropertyNameAsObject(Utf8JsonWriter writer, object? value, JsonSerializerOptions options) 145Utf8JsonWriter writer, 155internal sealed override void WriteNumberWithCustomHandlingAsObject(Utf8JsonWriter writer, object? value, JsonNumberHandling handling)
System\Text\Json\Serialization\JsonConverterOfT.cs (16)
77internal sealed override void WriteAsObject(Utf8JsonWriter writer, object? value, JsonSerializerOptions options) 84internal sealed override bool OnTryWriteAsObject(Utf8JsonWriter writer, object? value, JsonSerializerOptions options, ref WriteStack state) 91internal sealed override void WriteAsPropertyNameAsObject(Utf8JsonWriter writer, object? value, JsonSerializerOptions options) 97internal sealed override void WriteAsPropertyNameCoreAsObject(Utf8JsonWriter writer, object? value, JsonSerializerOptions options, bool isWritingExtensionDataProperty) 103internal sealed override void WriteNumberWithCustomHandlingAsObject(Utf8JsonWriter writer, object? value, JsonNumberHandling handling) 110internal sealed override bool TryWriteAsObject(Utf8JsonWriter writer, object? value, JsonSerializerOptions options, ref WriteStack state) 117internal virtual bool OnTryWrite(Utf8JsonWriter writer, 327internal bool TryWrite(Utf8JsonWriter writer, in T? value, JsonSerializerOptions options, ref WriteStack state) 445internal bool TryWriteDataExtensionProperty(Utf8JsonWriter writer, T value, JsonSerializerOptions options, ref WriteStack state) 558internal void VerifyWrite(int originalDepth, Utf8JsonWriter writer) 573/// <param name="writer">The <see cref="Utf8JsonWriter"/> to write to.</param> 577Utf8JsonWriter writer, 620/// <param name="writer">The <see cref="Utf8JsonWriter"/> to write to.</param> 624public virtual void WriteAsPropertyName(Utf8JsonWriter writer, [DisallowNull] T value, JsonSerializerOptions options) 636internal virtual void WriteAsPropertyNameCore(Utf8JsonWriter writer, [DisallowNull] T value, JsonSerializerOptions options, bool isWritingExtensionDataProperty) 686internal virtual void WriteNumberWithCustomHandling(Utf8JsonWriter writer, T? value, JsonNumberHandling handling)
System\Text\Json\Serialization\JsonConverterOfT.WriteCore.cs (1)
9Utf8JsonWriter writer,
System\Text\Json\Serialization\JsonResumableConverterOfT.cs (1)
34public sealed override void Write(Utf8JsonWriter writer, T value, JsonSerializerOptions options)
System\Text\Json\Serialization\JsonSerializer.Read.Node.cs (2)
160using (var writer = new Utf8JsonWriter(output, options.GetWriterOptions())) 181using (var writer = new Utf8JsonWriter(output, options.GetWriterOptions()))
System\Text\Json\Serialization\JsonSerializer.Write.ByteArray.cs (2)
142Utf8JsonWriter writer = Utf8JsonWriterCache.RentWriterAndBuffer(jsonTypeInfo.Options, out PooledByteBufferWriter output); 159Utf8JsonWriter writer = Utf8JsonWriterCache.RentWriterAndBuffer(jsonTypeInfo.Options, out PooledByteBufferWriter output);
System\Text\Json\Serialization\JsonSerializer.Write.Document.cs (2)
139Utf8JsonWriter writer = Utf8JsonWriterCache.RentWriter(options, output); 160Utf8JsonWriter writer = Utf8JsonWriterCache.RentWriter(options, output);
System\Text\Json\Serialization\JsonSerializer.Write.Element.cs (2)
137Utf8JsonWriter writer = Utf8JsonWriterCache.RentWriterAndBuffer(jsonTypeInfo.Options, out PooledByteBufferWriter output); 155Utf8JsonWriter writer = Utf8JsonWriterCache.RentWriterAndBuffer(jsonTypeInfo.Options, out PooledByteBufferWriter output);
System\Text\Json\Serialization\JsonSerializer.Write.HandleMetadata.cs (3)
20Utf8JsonWriter writer) 65Utf8JsonWriter writer) 77internal static bool TryGetReferenceForValue(object currentValue, ref WriteStack state, Utf8JsonWriter writer)
System\Text\Json\Serialization\JsonSerializer.Write.Node.cs (2)
138Utf8JsonWriter writer = Utf8JsonWriterCache.RentWriterAndBuffer(jsonTypeInfo.Options, out PooledByteBufferWriter output); 156Utf8JsonWriter writer = Utf8JsonWriterCache.RentWriterAndBuffer(jsonTypeInfo.Options, out PooledByteBufferWriter output);
System\Text\Json\Serialization\JsonSerializer.Write.String.cs (2)
159Utf8JsonWriter writer = Utf8JsonWriterCache.RentWriterAndBuffer(jsonTypeInfo.Options, out PooledByteBufferWriter output); 176Utf8JsonWriter writer = Utf8JsonWriterCache.RentWriterAndBuffer(jsonTypeInfo.Options, out PooledByteBufferWriter output);
System\Text\Json\Serialization\JsonSerializer.Write.Utf8JsonWriter.cs (5)
29Utf8JsonWriter writer, 62Utf8JsonWriter writer, 87public static void Serialize<TValue>(Utf8JsonWriter writer, TValue value, JsonTypeInfo<TValue> jsonTypeInfo) 114public static void Serialize(Utf8JsonWriter writer, object? value, JsonTypeInfo jsonTypeInfo) 150public static void Serialize(Utf8JsonWriter writer, object? value, Type inputType, JsonSerializerContext context)
System\Text\Json\Serialization\Metadata\JsonCollectionInfoValuesOfTCollection.cs (1)
44public Action<Utf8JsonWriter, TCollection>? SerializeHandler { get; init; }
System\Text\Json\Serialization\Metadata\JsonObjectInfoValuesOfT.cs (1)
56public Action<Utf8JsonWriter, T>? SerializeHandler { get; init; }
System\Text\Json\Serialization\Metadata\JsonPropertyInfo.cs (2)
741internal abstract bool GetMemberAndWriteJson(object obj, ref WriteStack state, Utf8JsonWriter writer); 742internal abstract bool GetMemberAndWriteJsonExtensionData(object obj, ref WriteStack state, Utf8JsonWriter writer);
System\Text\Json\Serialization\Metadata\JsonPropertyInfoOfT.cs (2)
171internal override bool GetMemberAndWriteJson(object obj, ref WriteStack state, Utf8JsonWriter writer) 251internal override bool GetMemberAndWriteJsonExtensionData(object obj, ref WriteStack state, Utf8JsonWriter writer)
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (1)
1053internal abstract void SerializeAsObject(Utf8JsonWriter writer, object? rootValue);
System\Text\Json\Serialization\Metadata\JsonTypeInfoOfT.cs (2)
15private Action<Utf8JsonWriter, T>? _serialize; 124public Action<Utf8JsonWriter, T>? SerializeHandler
System\Text\Json\Serialization\Metadata\JsonTypeInfoOfT.WriteHelpers.cs (6)
20Utf8JsonWriter writer, 102Utf8JsonWriter writer = Utf8JsonWriterCache.RentWriter(Options, pipeWriter); 161var writer = new Utf8JsonWriter(pipeWriter, Options.GetWriterOptions()); 265Utf8JsonWriter writer = Utf8JsonWriterCache.RentWriterAndBuffer(Options, out PooledByteBufferWriter bufferWriter); 302using var writer = new Utf8JsonWriter(bufferWriter, Options.GetWriterOptions()); 331internal sealed override void SerializeAsObject(Utf8JsonWriter writer, object? rootValue)
System\Text\Json\ThrowHelper.cs (1)
714throw new ObjectDisposedException(nameof(Utf8JsonWriter));
System\Text\Json\Writer\JsonWriterOptions.cs (6)
10/// using the <see cref="Utf8JsonWriter"/>. By default, the JSON is written without 11/// any indentation or extra white space. Also, the <see cref="Utf8JsonWriter"/> will 29/// Defines whether the <see cref="Utf8JsonWriter"/> should pretty print the JSON which includes: 49/// Defines the indentation character used by <see cref="Utf8JsonWriter"/> when <see cref="Indented"/> is enabled. Defaults to the space character. 67/// Defines the indentation size used by <see cref="Utf8JsonWriter"/> when <see cref="Indented"/> is enabled. Defaults to two. 114/// Defines whether the <see cref="Utf8JsonWriter"/> should skip structural validation and allow
System\Text\Json\Writer\Utf8JsonWriter.cs (23)
66/// Returns the amount of bytes written by the <see cref="Utf8JsonWriter"/> so far 72/// Returns the amount of bytes committed to the output by the <see cref="Utf8JsonWriter"/> so far. 82/// the <see cref="Utf8JsonWriter"/> which indicates whether to format the output 102/// Constructs a new <see cref="Utf8JsonWriter"/> instance with a specified <paramref name="bufferWriter"/>. 105/// <param name="options">Defines the customized behavior of the <see cref="Utf8JsonWriter"/> 106/// By default, the <see cref="Utf8JsonWriter"/> writes JSON minimized (that is, with no extra whitespace) 123/// Constructs a new <see cref="Utf8JsonWriter"/> instance with a specified <paramref name="utf8Json"/>. 126/// <param name="options">Defines the customized behavior of the <see cref="Utf8JsonWriter"/> 127/// By default, the <see cref="Utf8JsonWriter"/> writes JSON minimized (that is, with no extra whitespace) 164/// Resets the <see cref="Utf8JsonWriter"/> internal state so that it can be re-used. 167/// The <see cref="Utf8JsonWriter"/> will continue to use the original writer options 171/// The instance of <see cref="Utf8JsonWriter"/> has been disposed. 182/// Resets the <see cref="Utf8JsonWriter"/> internal state so that it can be re-used with the new instance of <see cref="Stream" />. 186/// The <see cref="Utf8JsonWriter"/> will continue to use the original writer options 193/// The instance of <see cref="Utf8JsonWriter"/> has been disposed. 219/// Resets the <see cref="Utf8JsonWriter"/> internal state so that it can be re-used with the new instance of <see cref="IBufferWriter{Byte}" />. 223/// The <see cref="Utf8JsonWriter"/> will continue to use the original writer options 230/// The instance of <see cref="Utf8JsonWriter"/> has been disposed. 260internal static Utf8JsonWriter CreateEmptyInstanceForCaching() => new Utf8JsonWriter(); 296/// The instance of <see cref="Utf8JsonWriter"/> has been disposed. 349/// The <see cref="Utf8JsonWriter"/> instance cannot be re-used after disposing. 380/// The <see cref="Utf8JsonWriter"/> instance cannot be re-used after disposing. 410/// The instance of <see cref="Utf8JsonWriter"/> has been disposed.
System\Text\Json\Writer\Utf8JsonWriterCache.cs (9)
17public static Utf8JsonWriter RentWriterAndBuffer(JsonSerializerOptions options, out PooledByteBufferWriter bufferWriter) => 20public static Utf8JsonWriter RentWriterAndBuffer(JsonWriterOptions options, int defaultBufferSize, out PooledByteBufferWriter bufferWriter) 23Utf8JsonWriter writer; 44public static Utf8JsonWriter RentWriter(JsonSerializerOptions options, IBufferWriter<byte> bufferWriter) 47Utf8JsonWriter writer; 64public static void ReturnWriterAndBuffer(Utf8JsonWriter writer, PooledByteBufferWriter bufferWriter) 76public static void ReturnWriter(Utf8JsonWriter writer) 90public readonly Utf8JsonWriter Writer; 96Writer = Utf8JsonWriter.CreateEmptyInstanceForCaching();