Home FunctionRepository Class
FunctionRepository Class
Cancel

FunctionRepository Class

Namespace: Json.Path

Inheritance: FunctionRepository 🡒 object

Stores expression function definitions.

Methods

Register(ValueFunctionDefinition function)

Registers a new function implementation, allowing it to be parsed.

Declaration

1
public static void Register(ValueFunctionDefinition function)
ParameterTypeDescription
functionValueFunctionDefinitionThe function.

Register(LogicalFunctionDefinition function)

Registers a new function implementation, allowing it to be parsed.

Declaration

1
public static void Register(LogicalFunctionDefinition function)
ParameterTypeDescription
functionLogicalFunctionDefinitionThe function.

Register(NodelistFunctionDefinition function)

Registers a new function implementation, allowing it to be parsed.

Declaration

1
public static void Register(NodelistFunctionDefinition function)
ParameterTypeDescription
functionNodelistFunctionDefinitionThe function.

TryGet(string name, out IPathFunctionDefinition function)

Gets a function implementation by name.

Declaration

1
public static bool TryGet(string name, out IPathFunctionDefinition function)
ParameterTypeDescription
namestringA function name.
functionout IPathFunctionDefinitionThe function, if found; otherwise null.

Returns

True if found; otherwise false.

Unregister()

Unregisters a function implementation.

Declaration

1
public static void Unregister()

Unregister(string name)

Unregisters a function implementation.

Declaration

1
public static void Unregister(string name)
Contents