[英]How do i get the the full name of the proxyed type for a nhibernate DynamicProxy?
[英]How to get the full type name?
有一个类,我可以在A,B这样的形式中获得完整的类型名称吗?
在Type实例上使用AssemblyQualifiedName
:
typeof(string).AssemblyQualifiedName
要么:
typeof(YourClass).AssemblyQualifiedName
此外,如果您有一个对象的实例,并想知道该类型的完整类型名称; 使用GetType()
从实例中获取Type实例。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.