如何获取参数或变量的命名空间、类、方法和名称。例如:
namespace TheNamespace
{
class Theclass
{
void Thing()
{
string thevariable = "";
string b = thevariable.GetFullName();
// b would be equal to TheNamespace.Theclass.Thing.thevariable
}
}
}
我该怎么做
aluckdog
慕无忌1623718
随时随地看视频慕课网APP
相关分类