Skip to content

Reflection class

Defined in

Namespace: ReactiveUI.Binding.Expressions Assembly: ReactiveUI.Binding.dll Full name: ReactiveUI.Binding.Expressions.Reflection Modifiers: public static

Summary

View source

        Helper class for handling reflection and expression-tree related operations.
        

Applies to

net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net462, net481

Methods

NameSummary
static RewriteUses the expression re-writer to simplify the expression down to its simplest expression.
static ExpressionToPropertyNamesConverts an expression that points to a property chain into a dotted path string.
static GetValueFetcherForPropertyConverts a MemberInfo into a delegate which fetches the value for the member.
static GetValueFetcherOrThrowConverts a MemberInfo into a delegate which fetches the value for the member. Throws if the member is not a field or property.
static GetValueSetterForPropertyConverts a MemberInfo into a delegate which sets the value for the member.
static GetValueSetterOrThrowConverts a MemberInfo into a delegate which sets the value for the member. Throws if the member is not a field or property.
static TryGetValueForPropertyChainAttempts to get the value of the last property in an expression chain.
static TryGetAllValuesForPropertyChainAttempts to get all intermediate values in a property chain as observed changes.
static TrySetValueToPropertyChainAttempts to set the value of the last property in an expression chain, throwing when reflection members are missing.
Inherited members