[Python.NET] Does python .net support creating a class inherited from an interface class declared by c#?

Oscar Le <Oscar.Le-rbQqYLFhARZskZv2Y/7f+AC/[email protected]>
Newsgroups gmane.comp.python.dotnet
Message-ID <08BEF311A0DA2640820417971234FF37223BACC6@ALVMBXW01.prod.quest.corp>
Hi There,

I want to create a class which can be inherited from an interface class declared by c#.  But it throws TypeError when I instance it: "object does not implement IServiceCallbackContract".

class ServiceCallbackContract(IServiceCallbackContract):
    def __init__(self, c):
        pass

object = ServiceCallbackContract(AClass)

Then I added some debug messages in the Python.Net source code.
[cid:[email protected]]

I mean I want to create a class as the implementation of the interface class which is declared by C# in a DLL file, I'm unable to change the code in that DLL file. So is there any way to make it works for my purpose by python.net?

Thanks,

Best regards,
Oscar Le

_________________________________________________
Python.NET mailing list - [email protected]
https://mail.python.org/mailman/listinfo/pythondotnet
image001.png (image/png, 41.7 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.