虽然项目经理可能各自都有自己的个性和管理风格,但似乎他们中的许多人都喜欢潜行"范围蔓延"(无论是否有人在观看).虽然他们通常意味着好(祝福他们的心),但是你发现对项目经理说"不"的最佳方式是什么?
GetType() returns null when the type exists in an unreferenced assembly. For example, when the following is called "localType" is always null (even when using the full namespace name of the class):
Type localType = Type.GetType("NamespaceX.ProjectX.ClassX");
Run Code Online (Sandbox Code Playgroud)
I don't see any reason why Type.GetType shouldn't be able to retrieve a type from an unreferenced assembly, so