Hi.
I need an ability to find type by name.
At the moment I'm using following code:
Type t = Type.GetType("System.Data.DataTable", false, true);
but it always returns null! :-(
Why?!
The application which is run this code has a reference to System.Data.dll, so I assume it must be able to find a "System.Data.DataTable".
Any ideas?
System.Data.DataTable tb = new System.Data.DataTable;
Type t = tb.GetType();
Otherwise, you need to know the name and path of the assembly (name of the dll) that contains the type to be able to retrieve the type information.