I'm trying to create a class implementing the EA.Element interface of the Interop.EA.dll provided by Sparx Systems.
The reason I want to provide my own implementation of the Sparx API element is because the API is terribly slow to use. I found a faster way (for read-only) by getting the data from the database directly, which would suit my needs in 90% of the cases.
If I could simply provide my own implementation of that interop interface, I could leave all of my existing code alone.
So I created the class like this:
namespace TSF.UmlToolingFramework.Wrappers.EA
{
internal class EADBElementWrapper : global::EA.Element
{
}
}
and then use the Implement Interface feature of Visual Studio to let VS create all the methods and properties.
Worked like a charm, except for MiscData
.
Visual Studio created
public string MiscData => throw new NotImplementedException();
But when trying to compile I still get the error
CS0535 'EADBElementWrapper' does not implement interface member 'IDualElement.MiscData[int].get'
Looking in the object browser the original MiscData property is listed as follows:
- MiscData[int]
string MiscData {get;}
I tried a few variations, like string[]
or MiscData[int]
but none of those seemed to help.
How can I implement this property in my class?