/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
- 0 vote215 views1 answer
- 0 vote236 views1 answer
- 6 votes233 views3 answers
- 0 vote233 views1 answer
- 0 vote219 views1 answer
- -1 vote210 views1 answer
- 0 vote221 views1 answer
- 4 votes243 views1 answer
- 0 vote222 views1 answer
- 3 votes245 views2 answers