I have this function:
private string getPropertyAsString<T>(Expression<Func<T, dynamic>> property) { }
I want to extract the property from the lambda as string
For example getPropertyAsString<someClass>(x=>x.Test); Will return "Test"
getPropertyAsString<someClass>(x=>x.Test);
"Test"
Aucun commentaire:
Enregistrer un commentaire