public class nameof { public static string nameof(expression> name) { memberexpression expressionbody = (memberexpression)name.body; return expressionbody.member.name; } }

1

public class NameOf { public static String nameof(Expression> name) { MemberExpression expressionBody = (MemberExpression)name.Body; return expressionBody.Member.Name; } }

By Wooden Hammer Marlene Stehr at Mar 24 2020


Related code examples


Code examples by languages