Reflection class¶
Defined in
Namespace: ReactiveUI.Binding.Expressions
Assembly: ReactiveUI.Binding.dll
Full name: ReactiveUI.Binding.Expressions.Reflection
Modifiers: public static
Summary¶
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¶
| Name | Summary |
|---|---|
| static Rewrite | Uses the expression re-writer to simplify the expression down to its simplest expression. |
| static ExpressionToPropertyNames | Converts an expression that points to a property chain into a dotted path string. |
| static GetValueFetcherForProperty | Converts a MemberInfo into a delegate which fetches the value for the member. |
| static GetValueFetcherOrThrow | Converts a MemberInfo into a delegate which fetches the value for the member. Throws if the member is not a field or property. |
| static GetValueSetterForProperty | Converts a MemberInfo into a delegate which sets the value for the member. |
| static GetValueSetterOrThrow | Converts a MemberInfo into a delegate which sets the value for the member. Throws if the member is not a field or property. |
| static TryGetValueForPropertyChain | Attempts to get the value of the last property in an expression chain. |
| static TryGetAllValuesForPropertyChain | Attempts to get all intermediate values in a property chain as observed changes. |
| static TrySetValueToPropertyChain | Attempts to set the value of the last property in an expression chain, throwing when reflection members are missing. |