Share via


ObjectPath.TryResolvePath(Object, String, List<Object>, Boolean) Method

Definition

Given an root object and property path, resolve to a constant if eval = true or a constant path otherwise.
conversation[user.name][user.age] => ['conversation', 'joe', 32].

public static bool TryResolvePath (object obj, string propertyPath, out System.Collections.Generic.List<object> segments, bool eval = false);
static member TryResolvePath : obj * string * List * bool -> bool
Public Shared Function TryResolvePath (obj As Object, propertyPath As String, ByRef segments As List(Of Object), Optional eval As Boolean = false) As Boolean

Parameters

obj
Object

root object.

propertyPath
String

property path to resolve.

segments
List<Object>

Path segments.

eval
Boolean

True to evaluate resulting segments.

Returns

True if it was able to resolve all nested references.

Applies to