c# - Assemble.GetType produces null although the type is in the assembly -


the next code produces null:

type type = typeof(console).assembly.gettype("console"); //null 

how possible? type console in assembly console defined...

gettype() expects full name of type, including namespace.

if want single type, can using typeof(console).


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -