Closed Siccity closed 6 years ago
Func can be created from a void method through expression trees, but invoking the Func will throw an error. A possible solution is to check if the return type is null when creating the Func, and if it is, set return value to a constant 'null', but i don't know how to achieve this.
Added. See: f0496e286e2fae3f60c12bddc0be0c950d08ab6d
Func