System.Type.GetType("System.Xml.XmlElement") returns an undefinedvalue

  • Thread starter Thread starter Tim Nelson
  • Start date Start date
T

Tim Nelson

when System.Type.GetType("System.Boolean") works.
Is there some way to get this type at runtime?
Thanks,
 
Tim,
Is there some way to get this type at runtime?

Sure, but you have to specify the full assembly qualified type name,
like

Type.GetType("System.Xml.XmlElement, System.Xml, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089")

Or just reference the System.Xml assembly and use the typeof operator.



Mattias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top