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 -

c# - WPF+EF - The operation cannot be completed because the DbContext has been disposed -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -