Hi!
I want to create a method which allows passing a lambda expression as parameter . For example
List<T> Select<T>(Predicate<T> criteria)
{
...
}
The idea is that the fields and values that have happened in the expression can be recovered within this method.
An example of usage could be:
List<Contact> list = Select<Contact>(c => c.Id == 1);
How do I get the fields and values of the expression
like this
string field = something here that you retrieve in this case Id
object value = something here make retrieve id here.
Sorry for the English, my native language is Spanish. Thank you and greetings.
Alejandro Mosquera.