this works:
Type type = typeof(ClassName);
these four do not work, the type is null:
string classeName = "ClassName";
string classeNameWithNamenspace = "namespace.ClassName";
Assemly assembly = Assembly.Load("MyAssemblyName");
Type type = Type.GetType($"{ClassName}");
Type type = Type.GetType($"{classeNameWithNamenspace}");
Type type = Type.GetType($"{classeName}, {assembly.FullName}");
Type type = Type.GetType($"{classeNameWithNamenspace}, {assembly.FullName}");
Tested all the variants described above. Checked that all names are spelled correctly. Also checked with Debug.
I don't know what to do, it should actually work.
The types for all GetType() are returned by this code. What is it you want to achieve?