c# - How do you know when a variable/property has been closed over? -
given expression like:
int32 5 = 5; express(num => num == five); where express like
void express(expression<predicate<int32>> predicatesgonnapredicate) { .... } when parsing expression above, how determine programmatically 5 has been closed over? can think of ton of hack ways it, there must proper means of identifying this?
if want replace sub-expression don't depend on parameters on lambda values, can use partialeval matt warren's article building iqueryable provider - part iii.
for example, in case result expression num => num == 5.
Comments
Post a Comment