samedi 23 septembre 2017

Invoke Method with Linq Expression Parameter

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.





Aucun commentaire:

Enregistrer un commentaire