ObjectPath.TryGetPathValue<T>(Object, String, T) Method

Definition

Get the value for a path relative to an object.

public static bool TryGetPathValue<T> (object obj, string path, out T value);
static member TryGetPathValue : obj * string * 'T -> bool
Public Shared Function TryGetPathValue(Of T) (obj As Object, path As String, ByRef value As T) As Boolean

Type Parameters

T

type to return.

Parameters

obj
Object

object to start with.

path
String

path to evaluate.

value
T

value for the path.

Returns

true if successful.

Applies to