These helper functions might also help:
That said, since Rhino 6/7 I’ve started to implement this method instead:
Also, you probably shouldn’t name a function clr
. Since that’s the name of the .NET common language runtime namespace. Which might cause conflicts if you need to import clr
when referencing an assembly etc.