我见过的一些反射方法
1.Assembly.GetManifestResourceStream 方法
从此程序集加载指定的清单资源。
摘自:https://msdn.microsoft.com/zh-cn/library/5kx66y1a(v=vs.110).aspx
GetType().Assembly.GetManifestResourceStream(GetType(), "czm.document." + name + ".sql");
2.
Object.GetType 方法
.NET Framework 4.6 and 4.5
3.
C#中typeof 与GetType()的区别
原文:http://www.studyofnet.com/news/284.html
http://bbs.csdn.net/topics/330134784
获取当前实例的 Type。

浙公网安备 33010602011771号