IronPython 无法看到我的程序集中的某些类

发布于 2024-09-11 01:56:08 字数 662 浏览 1 评论 0原文

我在使用 IronPython 中的 Assembly 中的某些类时遇到问题。这是我在脚本中使用的行:

from Comet.Pricing.Parsing import RegexLookupMapper

该类定义为:

public class RegexLookupMapper<T> : SingleValueMapper<string, T>

我在该程序集中导入另一个类没有问题:

from Comet.Pricing.Parsing import QuoteRequest

该类声明如下:

public class QuoteRequest<T> : IQuoteRequest<T> where T : IInstrument

当我在 Comet.Pricing.Parsing 上执行 dir 时,有很多类比程序集中实际的类少。我能看到的所有缺失类的唯一共同点是它们都派生自:

SingleValueMapper<string, T> 

派生自另一个命名空间/程序集中的类(也已毫无问题地导入)。

Im having trouble using some of the classes in my Assembly from IronPython. This is the line I am using in my script:

from Comet.Pricing.Parsing import RegexLookupMapper

The class is defined as:

public class RegexLookupMapper<T> : SingleValueMapper<string, T>

I have no problem importing another class in that Assembly:

from Comet.Pricing.Parsing import QuoteRequest

The class is declared as follows:

public class QuoteRequest<T> : IQuoteRequest<T> where T : IInstrument

When I do a dir on Comet.Pricing.Parsing there are a lot less classes than are actually in the assembly. The only thing I can see in common with all the missing classes is that they all derive from:

SingleValueMapper<string, T> 

which derives from a class in another namespace/assembly (which has also been imported with no problems).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

妄想挽回 2024-09-18 01:56:08

事实证明缺少基类的依赖项。

It turned out a dependency of a base class was missing.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文