DialogStateManager.GetValue<T>(String, Func<T>) Method

Definition

Get the value from memory using path expression (NOTE: This always returns clone of value).

public T GetValue<T> (string pathExpression, Func<T> defaultValue = default);
member this.GetValue : string * Func<'T> -> 'T
Public Function GetValue(Of T) (pathExpression As String, Optional defaultValue As Func(Of T) = Nothing) As T

Type Parameters

T

The value type to return.

Parameters

pathExpression
String

Path expression to use.

defaultValue
Func<T>

Function to give default value if there is none (OPTIONAL).

Returns

T

Result or null if the path is not valid.

Remarks

This always returns a CLONE of the memory, any modifications to the result of this will not be affect memory.

Applies to