Generally, we can obtain object types using the following methods:
String vtypename = "system. int32 ";
Type vtype = type. GetType (vtypename );
Type vtype1 = typeof (INT );
However, when an assembly is dynamically loaded and used in another assembly, the results may differ.
Assembly vassembly = assembly. LoadFile (vdllfilename );
The custom data type is [tempuri.org. linearring].
If we directly use type. GetType ("tempuri.org. linearring"), no data is obtained.
You must use the following methods:
Type vtype2 = vassembly. GetType ("tempuri.org. linearring ");
String vtypestring = string. format ("system. collections. generic. list '1 [[{0}] ", vtype2. assemblyqualifiedname); // This statement contains the dynamic link library information. Otherwise, the type information cannot be obtained using vtype2.fullname.
Type vtype3 = passembly. GetType (vtypestring );