/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
ShareSimilar codes
Share