2016-12-07 34 views

回答

0

您可以使用从C#6 nameof运营商获得的变量名称为string

如:

Console.WriteLien(nameof(this.MyPicker))将打印 “MyPicker”

相关问题