Creating C# Type from full name

Posted by Adi Barda on Stack Overflow See other posts from Stack Overflow or by Adi Barda
Published on 2009-09-08T08:43:43Z Indexed on 2010/04/17 0:13 UTC
Read the original article Hit count: 656

Filed under:
|
|

I'm trying to get a Type object from type full name i'm doing the folowing:

Assembly asm = Assembly.GetEntryAssembly();  
string toNativeTypeName="any type full name";
Type t = asm.GetType(toNativeTypeName);

I get null, why?

the assembly is my executable (.net executable) and the type name is: System.Xml.XmlNode

© Stack Overflow or respective owner

Related posts about c#

Related posts about assemblies