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
 
Back
Top