Skip to content

Reflection class

Defined in

Namespace: ReactiveUI.Binding.Reactive.Expressions Assembly: ReactiveUI.Binding.Reactive.dll Full name: ReactiveUI.Binding.Reactive.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-tvos18.0, net9.0-maccatalyst18.0, net9.0-ios18.0, net9.0-macos15.0, net9.0-desktop1.0, net8.0, net8.0-macos14.5, net8.0-ios18.0, net8.0-maccatalyst18.0, net8.0-macos15.0, net8.0-tvos18.0, net8.0-ios17.5, net8.0-maccatalyst17.5, netstandard2.1, net481, net462, net471

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