I just noticed kind of a bug in the function:
Type.GetType("System.Uri");
The return value is null whereas the following functions are working quite well…
Type.GetType("System.string");
Type.GetType("System.bool");
Type.GetType("System.DateTime");
…
Anyone knows, why the returned Type is null?
EDIT: removed Uri double entry…
The reason that
Type.GetType("System.Uri")returnsnullis that the type is located in system.dll instead of mscorlib.dll. You must use the assembly-qualified name as noted above.From MSDN: