Skip to content

Commit

Permalink
Fix typo in JsonSerializer api documentation. (dotnet/corefx#37917)
Browse files Browse the repository at this point in the history
Commit migrated from dotnet/corefx@5733747
  • Loading branch information
ahsonkhan authored May 24, 2019
1 parent 1361471 commit 80dbb04
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public static partial class JsonSerializer
/// </summary>
/// <returns>A UTF-8 representation of the value.</returns>
/// <param name="value">The value to convert.</param>
/// <param name="options">Options to control the convertion behavior.</param>
/// <param name="options">Options to control the conversion behavior.</param>
public static byte[] ToBytes<TValue>(TValue value, JsonSerializerOptions options = null)
{
return WriteCoreBytes(value, typeof(TValue), options);
Expand All @@ -23,7 +23,7 @@ public static byte[] ToBytes<TValue>(TValue value, JsonSerializerOptions options
/// <returns>A UTF-8 representation of the value.</returns>
/// <param name="value">The value to convert.</param>
/// <param name="type">The type of the <paramref name="value"/> to convert.</param>
/// <param name="options">Options to control the convertion behavior.</param>
/// <param name="options">Options to control the conversion behavior.</param>
public static byte[] ToBytes(object value, Type type, JsonSerializerOptions options = null)
{
VerifyValueAndType(value, type);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public static partial class JsonSerializer
/// <returns>A task that represents the asynchronous write operation.</returns>
/// <param name="value">The value to convert.</param>
/// <param name="utf8Json">The UTF-8 <see cref="System.IO.Stream"/> to write to.</param>
/// <param name="options">Options to control the convertion behavior.</param>
/// <param name="options">Options to control the conversion behavior.</param>
/// <param name="cancellationToken">The <see cref="System.Threading.CancellationToken"/> which may be used to cancel the write operation.</param>
public static Task WriteAsync<TValue>(TValue value, Stream utf8Json, JsonSerializerOptions options = null, CancellationToken cancellationToken = default)
{
Expand All @@ -31,7 +31,7 @@ public static Task WriteAsync<TValue>(TValue value, Stream utf8Json, JsonSeriali
/// <param name="value">The value to convert.</param>
/// <param name="type">The type of the <paramref name="value"/> to convert.</param>
/// <param name="utf8Json">The UTF-8 <see cref="System.IO.Stream"/> to write to.</param>
/// <param name="options">Options to control the convertion behavior.</param>
/// <param name="options">Options to control the conversion behavior.</param>
/// <param name="cancellationToken">The <see cref="System.Threading.CancellationToken"/> which may be used to cancel the write operation.</param>
public static Task WriteAsync(object value, Type type, Stream utf8Json, JsonSerializerOptions options = null, CancellationToken cancellationToken = default)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public static partial class JsonSerializer
/// </summary>
/// <returns>A <see cref="System.String"/> representation of the value.</returns>
/// <param name="value">The value to convert.</param>
/// <param name="options">Options to control the convertion behavior.</param>
/// <param name="options">Options to control the conversion behavior.</param>
/// <remarks>Using a <see cref="System.String"/> is not as efficient as using UTF-8
/// encoding since the implementation internally uses UTF-8. See also <see cref="ToBytes"/>
/// and <see cref="WriteAsync"/>.
Expand All @@ -27,7 +27,7 @@ public static string ToString<TValue>(TValue value, JsonSerializerOptions option
/// <returns>A <see cref="System.String"/> representation of the value.</returns>
/// <param name="value">The value to convert.</param>
/// <param name="type">The type of the <paramref name="value"/> to convert.</param>
/// <param name="options">Options to control the convertion behavior.</param>
/// <param name="options">Options to control the conversion behavior.</param>
/// <remarks>Using a <see cref="System.String"/> is not as efficient as using UTF-8
/// encoding since the implementation internally uses UTF-8. See also <see cref="ToBytes"/>
/// and <see cref="WriteAsync"/>.
Expand Down

0 comments on commit 80dbb04

Please sign in to comment.