Click or drag to resize

JObjectHelperTryGetArrayIndex Method

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

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

Parameters

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

Return Value

Type: Boolean
True if an index value was found.
See Also