For example:
Validate("items.Select(item => item.ToLower())")
will return True, while
Validate("var n=5;")
will return False.
The context is that I want to create an application that allows users to manipulate their data via a lambda expression. If the user inputs a valid lambda expression, the program will execute it. Otherwise, it should fail.