Issue with using a .net class in ironpython

前端 未结 1 1070
自闭症患者
自闭症患者 2021-01-20 19:49

If I have a .Net class that is not part of any namespace then I\'m not able to use it in ironpython.

Here is an example

Suppose I have a assembly FooLib.dll

1条回答
  •  心在旅途
    2021-01-20 20:20

    You have to use a bare import like so:

    import clr
    clr.AddReference("FooLib") # This call succeeds.
    import Foo
    f = Foo()
    

    0 讨论(0)
提交回复
热议问题