i am implementing an interface defined in C# in ironPython, but cannot make property implementation work:
C#
interface IInterface
{
Dictionary<string, element> Elements { get; }
}
Python:
class Implementor(IInterface):
def __init__(self):
self.elements = Dictionary[str, element]()
def get_Elements(self):
return self.elements
When calling to get_Elements, i get the following exception:
Expected property for Elements, but found Dictionary[str, element]
What im doing wrong?
Thanks!