Loads the type specified in the type string with assembly qualified name.
The type loaded or a null reference (Nothing in Visual Basic) if it could not be loaded.
If the Type cannot be instantiated from the assembly qualified type name, then we'll try to instantiate the type using its simple type name from an already loaded assembly with an assembly name mathing the assembly in the assembly qualified type name.
Exception Type | Condition |
---|---|
TypeLoadException | throwOnError is true and an error is encountered while loading the Type, or typeName is not an assembly qualified name. |
ReflectionUtils Class | NAnt.Core.Util Namespace