Consider the code,
Type t0 = Type.GetType('System.Drawing.dll'); Type t1 = Type.GetType('System.Drawing.Font');
Here in order to find type of ‘System.Drawing.Font’ the assembly ‘System.Drawing.dll’ is needed. how to use it.?
i.e wat if i do, so that value of t0 wont be null.??
Consider i ave a dll, proj.dll and i need to find the type of the class Class1 that is present in the dll.
Specify the assembly, including the version number for strongly named assemblies:
Of course, if it’s really just
System.Drawing.Font(or another type you know at compile-time), usetypeof:If you know another type in the same assembly at compile-time, you can use
Assembly.GetType: