/Javascript/Ember/Public class NameOf { public static String nameof<T>(Expression<Func<T>> name) { MemberExpression expressionBody = (MemberExpression)name.Body; return expressionBody.Member.Name; } }
Public class NameOf { public static String nameof<T>(Expression<Func<T>> name) { MemberExpression expressionBody = (MemberExpression)name.Body; return expressionBody.Member.Name; } }
Public class NameOf { public static String nameof(Expression>name) { MemberExpression expressionBody = (MemberExpression)name.Body; return expressionBody.Member.Name; } }
1
- 2 votes210 views2 answers
- 6 votes217 views3 answers
- 0 vote229 views1 answer
- 0 vote220 views1 answer
- 1 vote207 views1 answer
- 1 vote213 views1 answer
- 2 votes217 views1 answer
- 0 vote186 views1 answer
- 0 vote221 views1 answer
- 2 votes255 views1 answer