We are moving interfaces previously in VB.Net into a separate C# project, which should hold interfaces to be implemented by corresponding VB.Net classes. The issue comes when trying to move interface definitions from VB.Net which contain parameterized properties.
I've tried something like this:
C#:
public interface MyInterface
{
short get_MyProperty(short parameter);
}
VB.Net:
Public ReadOnly Property MyProperty(ByVal Parameter As Short) As Short
Implements CSharpProject.MyInterface.MyProperty
Get
' Do stuff
End Get
End Property
However, neither get_MyProperty
nor MyProperty
show up as implementable methods/properties to the dependent project. Moving the parameterized properties to methods would take a large amount of refactoring, and would be a worst-case-scenario effort. We're looking for any alternatives we can get.