DWQA QuestionsCategory: ProgramC ා. Net gets the type of the assembly is null?
juncky asked 4 months ago

string typeName = assemblyInfo.Namespace + action.Substring(n, m – n) + assemblyInfo.TypeSuffix;
Assembly assembly = Assembly.LoadFrom(assemblyInfo.Path);
Type t = assembly.GetType(typeName, false, true);
An assembly can be loaded into. DLL file exists, but why can’t its type be obtained? Solve! thank you!

1 Answers
juncky answered 4 months ago

It’s the wrong file name in my assembly