I have method:
public IFluentBuilder<TValue> Setup<TValue>(Expression<Func<TOptions, TValue>> selector)
That I can call with:
Setup(obj => obj.Property).DoSomething()
How can I call DoSomething
, a member of IFluentBuilder
, through reflection when I have a FieldInfo
or PropertyInfo
, and MethodInfo
.