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

Reflection.

GetValueFetcherOrThrow(MemberInfo?) Method

Summary

Converts a MemberInfo into a Func which will fetch the value for the Member. Handles either fields or properties. If there is no field or property with the matching MemberInfo it'll throw an ArgumentException.
Namespace
ReactiveUI
Containing Type
Reflection

Syntax

public static Func<object, object?[], object?> GetValueFetcherOrThrow(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.