Nama kelas publik {public static string nameof (ekspresi > 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;
}
}
Wicked Whale