It is possible to create a generic class in IronPython? I want to inherit from a generic c# class and implement a custom IronPython class on top.
for example:
public class A<T>
{
}
First IronPython class:
class B[T](A[T]): # Problematic part. I don't know how to create a
# generic ironpython class
Second IronPython class:
class C(B[object]):
So in the first IronPython is the problem. I don't now hot to create a generic class to pass the type. Is this possible?
EDIT
I don't just want to use generic c# classes. I want to implement my own in IronPython and inherting from a c# class.
EDIT2
What I want to achive is a class A that has a python base class B, which should have a generic C# baseclass C. The python baseclass B is independent of the type of the C# baseclass C (it's just a specialization of the generic C# class), but it has to initialize the correct C# base class.
Thank you!