I need to find all calls to particular method in expression tree which can be very complex. Currently I have simple recursive code which checks for BinaryExpression, ConditionalExpression etc and of course for MethodCallExpression. It works but I wonder if there is simpler way?
What I need is an iterator for all MethodCallExpression in complex expression so I can just check MethodCallExpression and don't care about other types of expression in my tree. Is something like this builtin for example somewhere in System.Linq.Expressions?