I'm reading a string from a file, which would be something like "char", or "bool" etc. I'm trying to get a type object from it. While working out how to do this i've tried the code below, but it doesn't work.
Any ideas why?
Thanks for any help.Code:Type T = Assembly.GetAssembly(typeof(char)).GetType("System.char", true); Type T = Assembly.GetAssembly(typeof(char)).GetType("char", true);





Reply With Quote