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

Reflection.

GetValueSetterOrThrow(MemberInfo?) Method

Summary

Converts a MemberInfo into a Func which will set 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 Action<object, object?, object?[]>? GetValueSetterOrThrow(MemberInfo? member)

Parameters

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

Return Value

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