JObjectHelperTryGetArrayIndex Method

Attempts to extract an array index value from a json path segment.

Definition

Namespace: MFiles.VAF.Configuration.JsonMapping
Assembly: MFiles.VAF.Configuration (in MFiles.VAF.Configuration.dll) Version: 23.12.13247.3
C#
public bool TryGetArrayIndex(
	string pathPart,
	out string propName,
	out int index
)

Parameters

pathPart  String
The json path segment to extract the array index from.
propName  String
Receives the property name portion of the json path segment.
index  Int32
Receives teh array index of the json path segment if found, -1 otherwise.

Return Value

Boolean
True if an index value was found.

See Also