Home CountFunction Class
CountFunction Class
Cancel

CountFunction Class

Namespace: Json.Path

Inheritance: CountFunction 🡒 ValueFunctionDefinition 🡒 object

Implemented interfaces:

  • IReflectiveFunctionDefinition
  • IPathFunctionDefinition

Implements the count() function which returns the number of nodes in a nodelist.

Properties

NameTypeSummary
NamestringGets the function name.

Methods

Evaluate(NodeList nodeList)

Evaluates the function.

Declaration

1
public JsonNode Evaluate(NodeList nodeList)
ParameterTypeDescription
nodeListNodeListA nodelist

Returns

The number of nodes in the nodelist.

Contents