From 80dbb0482fc7bca61f7c7eed787f3108bc15f558 Mon Sep 17 00:00:00 2001 From: Ahson Khan Date: Thu, 23 May 2019 20:14:50 -0700 Subject: [PATCH] Fix typo in JsonSerializer api documentation. (dotnet/corefx#37917) Commit migrated from https://github.com/dotnet/corefx/commit/57337477528b0b3344c4f190ea0ad85d5bc19cd0 --- .../System/Text/Json/Serialization/JsonSerializer.Write.ByteArray.cs | 4 ++-- .../src/System/Text/Json/Serialization/JsonSerializer.Write.Stream.cs | 4 ++-- .../src/System/Text/Json/Serialization/JsonSerializer.Write.String.cs | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonSerializer.Write.ByteArray.cs b/src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonSerializer.Write.ByteArray.cs index b298c75..595bac8 100644 --- a/src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonSerializer.Write.ByteArray.cs +++ b/src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonSerializer.Write.ByteArray.cs @@ -11,7 +11,7 @@ namespace System.Text.Json.Serialization /// /// A UTF-8 representation of the value. /// The value to convert. - /// Options to control the convertion behavior. + /// Options to control the conversion behavior. public static byte[] ToBytes(TValue value, JsonSerializerOptions options = null) { return WriteCoreBytes(value, typeof(TValue), options); @@ -23,7 +23,7 @@ namespace System.Text.Json.Serialization /// A UTF-8 representation of the value. /// The value to convert. /// The type of the to convert. - /// Options to control the convertion behavior. + /// Options to control the conversion behavior. public static byte[] ToBytes(object value, Type type, JsonSerializerOptions options = null) { VerifyValueAndType(value, type); diff --git a/src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonSerializer.Write.Stream.cs b/src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonSerializer.Write.Stream.cs index 6a53e3a..9aa8ece 100644 --- a/src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonSerializer.Write.Stream.cs +++ b/src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonSerializer.Write.Stream.cs @@ -17,7 +17,7 @@ namespace System.Text.Json.Serialization /// A task that represents the asynchronous write operation. /// The value to convert. /// The UTF-8 to write to. - /// Options to control the convertion behavior. + /// Options to control the conversion behavior. /// The which may be used to cancel the write operation. public static Task WriteAsync(TValue value, Stream utf8Json, JsonSerializerOptions options = null, CancellationToken cancellationToken = default) { @@ -31,7 +31,7 @@ namespace System.Text.Json.Serialization /// The value to convert. /// The type of the to convert. /// The UTF-8 to write to. - /// Options to control the convertion behavior. + /// Options to control the conversion behavior. /// The which may be used to cancel the write operation. public static Task WriteAsync(object value, Type type, Stream utf8Json, JsonSerializerOptions options = null, CancellationToken cancellationToken = default) { diff --git a/src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonSerializer.Write.String.cs b/src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonSerializer.Write.String.cs index 9dc78b2..48c53aa 100644 --- a/src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonSerializer.Write.String.cs +++ b/src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonSerializer.Write.String.cs @@ -11,7 +11,7 @@ namespace System.Text.Json.Serialization /// /// A representation of the value. /// The value to convert. - /// Options to control the convertion behavior. + /// Options to control the conversion behavior. /// Using a is not as efficient as using UTF-8 /// encoding since the implementation internally uses UTF-8. See also /// and . @@ -27,7 +27,7 @@ namespace System.Text.Json.Serialization /// A representation of the value. /// The value to convert. /// The type of the to convert. - /// Options to control the convertion behavior. + /// Options to control the conversion behavior. /// Using a is not as efficient as using UTF-8 /// encoding since the implementation internally uses UTF-8. See also /// and . -- 2.7.4