【发布时间】:2019-06-26 14:59:54
【问题描述】:
如何获取参数或变量的命名空间、类、方法和名称。例如:
namespace TheNamespace
{
class Theclass
{
void Thing()
{
string thevariable = "";
string b = thevariable.GetFullName();
// b would be equal to TheNamespace.Theclass.Thing.thevariable
}
}
}
我该怎么做
【问题讨论】:
标签: c# string class reflection namespaces