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

Reflection.

GetValueFetcherForProperty(MemberInfo?) Method

Summary

Converts a MemberInfo into a Func which will fetch the value for the Member. Handles either fields or properties.
Namespace
ReactiveUI
Containing Type
Reflection

Syntax

public static Func<object, object?[], object?>? GetValueFetcherForProperty(MemberInfo? member)

Parameters

Name Type Description
member MemberInfo? The member info to convert.

Return Value

Type Description
Func<object, object?[], object?>? A Func that takes in the object/indexes and returns the value.