Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4df6105 commit 464ce08Copy full SHA for 464ce08
src/runtime/moduleobject.cs
@@ -403,6 +403,18 @@ public static Assembly AddReference(string name)
403
return assembly;
404
}
405
406
+ [ModuleFunction]
407
+ [ForbidPythonThreads]
408
+ public static Type GetClrType(object type)
409
+ {
410
+ var converted = type as Type;
411
+ if (converted == null)
412
413
+ throw new ArgumentException("Cannot convert object to Type");
414
+ }
415
+ return converted;
416
417
+
418
[ModuleFunction]
419
[ForbidPythonThreads]
420
public static string FindAssembly(string name)
0 commit comments