The recording of the first ever ReactiveUI virtual conference is available on our YouTube Channel.

Reflection.

TryGetAllValuesForPropertyChain(IObservedChange<object, object?>[], object?, IEnumerable<Expression>) Method

Summary

Based on a list of Expressions get a IObservedChanged for the value of the last property in the chain if possible. The Expressions are property chains. Eg Property1.Property2.Property3 The method will make sure that each Expression can get a value along the way and get each property until each expression is evaluated.
Namespace
ReactiveUI
Containing Type
Reflection

Syntax

public static bool TryGetAllValuesForPropertyChain(out IObservedChange<object, object?>[] changeValues, object? current, IEnumerable<Expression> expressionChain)

Parameters

Name Type Description
changeValues IObservedChange<object, object?>[] A IObservedChanged for the value.
current object? The object that starts the property chain.
expressionChain IEnumerable<Expression> A list of expressions which will point towards a property or field.

Return Value

Type Description
bool If the value was successfully retrieved or not.