Skip to content
Prev Previous commit
Next Next commit
Add comment
  • Loading branch information
eiriktsarpalis authored and github-actions committed Nov 16, 2023
commit cc4957fd643ac4ed3d0f3992eb5e86af94364bd1
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,11 @@ internal void AssignParent(JsonNode parent)
Parent = parent;
}

/// <summary>
/// Adaptation of the equivalent JsonValue.Create factory method extended
/// to support arbitrary <see cref="JsonElement"/> and <see cref="JsonNode"/> values.
/// TODO consider making public cf. https://github.com/dotnet/runtime/issues/70427
/// </summary>
[RequiresUnreferencedCode(JsonSerializer.SerializationUnreferencedCodeMessage)]
[RequiresDynamicCode(JsonSerializer.SerializationRequiresDynamicCodeMessage)]
internal static JsonNode? ConvertFromValue<T>(T? value, JsonNodeOptions? options = null)
Expand Down