6 references to CreateFromElement
System.Text.Json (6)
System\Text\Json\Nodes\JsonValue.CreateOverloads.cs (2)
290public static JsonValue? Create(JsonElement value, JsonNodeOptions? options = null) => JsonValue.CreateFromElement(ref value, options); 298public static JsonValue? Create(JsonElement? value, JsonNodeOptions? options = null) => value is JsonElement element ? JsonValue.CreateFromElement(ref element, options) : null;
System\Text\Json\Nodes\JsonValue.cs (2)
64return CreateFromElement(ref element, options); 100return CreateFromElement(ref element, options);
System\Text\Json\Serialization\Converters\Node\JsonValueConverter.cs (2)
39return JsonValue.CreateFromElement(ref element, options.GetNodeOptions()); 58return JsonValue.CreateFromElement(ref element, options)!;