JsonPathFunctionArgument<TValue> Struct
A typed function argument or result retaining native navigator values without JSON conversion.
public readonly struct JsonPathFunctionArgument<TValue>Type parameters
TValue- The navigator's node type.
Properties
| Name | Description |
|---|---|
| IsNode | Gets whether this value is a native navigator node rather than a literal. |
| IsNothing | Gets whether this value is Nothing, rather than JSON null. |
| Logical | Gets the logical result. Throws for other argument types. |
| Node | Gets the native node. Throws when this is not a native value. |
| Nodes | Gets the ordered node list. Throws for other argument types. |
| Nothing | Creates Nothing, distinct from JSON null. |
| Null | Creates JSON null. A default argument also represents JSON null. |
| Type | Gets the RFC function type. |
IsNothing
JsonPathFunctionArgument`1.csGets the native node. Throws when this is not a native value.
public TValue? Node { get; }Property value
TValue?
Gets the ordered node list. Throws for other argument types.
public IReadOnlyList<TValue?> Nodes { get; }Property value
Creates Nothing, distinct from JSON null.
public static JsonPathFunctionArgument<TValue> Nothing { get; }Property value
Creates JSON null. A default argument also represents JSON null.
public static JsonPathFunctionArgument<TValue> Null { get; }Property value
Methods
| Name | Description |
|---|---|
| FromBoolean(bool) | Creates a JSON boolean value (not LogicalType). |
| FromLogical(bool) | Creates a logical result (not a JSON boolean). |
| FromNode(TValue?) | Creates a value from a native node, including a native JSON null. |
| FromNodes(IEnumerable<TValue?>) | Creates a node list by copying its membership and preserving order and duplicates. |
| FromNumber(double) | Creates a number using the evaluator's double-precision representation. |
| FromString(string) | Creates a string value. |
| GetValueKind(JsonPathNavigator<TValue>) | Gets the JSON kind of a value, or null for Nothing. Throws for other argument types. |
| TryGetBoolean(JsonPathNavigator<TValue>, bool) | Reads a boolean from a literal or native value. |
| TryGetNumber(JsonPathNavigator<TValue>, double) | Reads a number from a literal or native value. |
| TryGetString(JsonPathNavigator<TValue>, string?) | Reads a string from a literal or native value. |
FromBoolean(bool)
JsonPathFunctionArgument`1.csCreates a JSON boolean value (not LogicalType).
public static JsonPathFunctionArgument<TValue> FromBoolean(bool value)FromLogical(bool)
JsonPathFunctionArgument`1.csCreates a logical result (not a JSON boolean).
public static JsonPathFunctionArgument<TValue> FromLogical(bool value)FromNode(TValue?)
JsonPathFunctionArgument`1.csCreates a value from a native node, including a native JSON null.
public static JsonPathFunctionArgument<TValue> FromNode(TValue? node)FromNodes(IEnumerable<TValue?>)
JsonPathFunctionArgument`1.csCreates a node list by copying its membership and preserving order and duplicates.
public static JsonPathFunctionArgument<TValue> FromNodes(IEnumerable<TValue?> nodes)FromNumber(double)
JsonPathFunctionArgument`1.csCreates a number using the evaluator's double-precision representation.
public static JsonPathFunctionArgument<TValue> FromNumber(double value)FromString(string)
JsonPathFunctionArgument`1.csCreates a string value.
public static JsonPathFunctionArgument<TValue> FromString(string value)