未验证 提交 358cdf9f 编写于 作者: B bjornen77 提交者: GitHub

Improve XML documentation (#62994)

Corrected return value type in XML documentation.

Fix #62993
Co-authored-by: NBjörn Sjögren <bjs@hms.se>
上级 834b2789
......@@ -11,10 +11,10 @@ namespace System.Text.Json
public static partial class JsonSerializer
{
/// <summary>
/// Converts the provided value into a <see cref="JsonDocument"/>.
/// Converts the provided value into a <see cref="JsonElement"/>.
/// </summary>
/// <typeparam name="TValue">The type of the value to serialize.</typeparam>
/// <returns>A <see cref="JsonDocument"/> representation of the JSON value.</returns>
/// <returns>A <see cref="JsonElement"/> representation of the JSON value.</returns>
/// <param name="value">The value to convert.</param>
/// <param name="options">Options to control the conversion behavior.</param>
/// <exception cref="NotSupportedException">
......@@ -30,9 +30,9 @@ public static JsonElement SerializeToElement<TValue>(TValue value, JsonSerialize
}
/// <summary>
/// Converts the provided value into a <see cref="JsonDocument"/>.
/// Converts the provided value into a <see cref="JsonElement"/>.
/// </summary>
/// <returns>A <see cref="JsonDocument"/> representation of the value.</returns>
/// <returns>A <see cref="JsonElement"/> representation of the value.</returns>
/// <param name="value">The value to convert.</param>
/// <param name="inputType">The type of the <paramref name="value"/> to convert.</param>
/// <param name="options">Options to control the conversion behavior.</param>
......@@ -55,10 +55,10 @@ public static JsonElement SerializeToElement(object? value, Type inputType, Json
}
/// <summary>
/// Converts the provided value into a <see cref="JsonDocument"/>.
/// Converts the provided value into a <see cref="JsonElement"/>.
/// </summary>
/// <typeparam name="TValue">The type of the value to serialize.</typeparam>
/// <returns>A <see cref="JsonDocument"/> representation of the value.</returns>
/// <returns>A <see cref="JsonElement"/> representation of the value.</returns>
/// <param name="value">The value to convert.</param>
/// <param name="jsonTypeInfo">Metadata about the type to convert.</param>
/// <exception cref="NotSupportedException">
......@@ -79,9 +79,9 @@ public static JsonElement SerializeToElement<TValue>(TValue value, JsonTypeInfo<
}
/// <summary>
/// Converts the provided value into a <see cref="JsonDocument"/>.
/// Converts the provided value into a <see cref="JsonElement"/>.
/// </summary>
/// <returns>A <see cref="JsonDocument"/> representation of the value.</returns>
/// <returns>A <see cref="JsonElement"/> representation of the value.</returns>
/// <param name="value">The value to convert.</param>
/// <param name="inputType">The type of the <paramref name="value"/> to convert.</param>
/// <param name="context">A metadata provider for serializable types.</param>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册