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

rdbms - what exactly the undo information lives in oracle? -

bash - How do you programmatically add a bats test? -

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