C# 6.0 变量名 获取

string abc = "123";  

Console.WriteLine(nameof(abc)); 

原文地址:https://www.cnblogs.com/zhangxiaoshuai/p/7128167.html