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
Post a Comment