Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

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

Wicked Whale answered on March 25, 2020 Popularity 6/10 Helpfulness 7/10

Contents


More Related Answers


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

1
Popularity 6/10 Helpfulness 7/10 Language javascript
Source: Grepper
Link to this answer
Share Copy Link
Contributed on Mar 25 2020
Wicked Whale
0 Answers  Avg Quality 2/10


X

Continue with Google

By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
X
Grepper Account Login Required

Oops, You will need to install Grepper and log-in to perform this action.