Sample of wrapper(class), which allow set Formula(as Func) to variable. It also responds to changes in input vars for Func. Project has a lot of additional functionality in converting Method to Func and etc.
Rus article: https://habrahabr.ru/sandbox/100890/