¡@

Home 

c# Programming Glossary: memberexp

Get the property, as a string, from an Expression<Func<TModel,TProperty>>

http://stackoverflow.com/questions/2789504/get-the-property-as-a-string-from-an-expressionfunctmodel-tproperty

TProperty Expression Func T TProperty exp MemberExpression memberExp if TryFindMemberExpression exp.Body out memberExp return string.Empty.. memberExp if TryFindMemberExpression exp.Body out memberExp return string.Empty var memberNames new Stack string do memberNames.Push.. var memberNames new Stack string do memberNames.Push memberExp.Member.Name while TryFindMemberExpression memberExp.Expression..