开发者

IronPython unable to see certain classes in my Assembly

开发者 https://www.devze.com 2023-01-08 15:59 出处:网络
Im having trouble using some of the classes in my Assembly from IronPy开发者_如何学JAVAthon. This is the line I am using in my script:

Im having trouble using some of the classes in my Assembly from IronPy开发者_如何学JAVAthon. 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).


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

0

精彩评论

暂无评论...
验证码 换一张
取 消