This seems like a reasonable (and maybe simple?) scenario, but how would you do the following:
Lets say I have 2 interfaces:
Interface ISimpleInterfa
In C# you can use explicit interface implementation:
class Foo
{
string ISimpleInterface.ErrorMsg
{ get... }
string IExtendedInterface.ErrorMsg
{ get... set... }
string IExtendedInterface.SomeOtherProperty
{ get... set... }
}
or Interface Mapping
class Foo
{
public string ErrorMsg
{ get... set... }
public string SomeOtherProperty
{ get... set... }
}
As for VB.NET, it has Implements
keyword:
Property ErrorMsg As String Implements ISimpleInterface.ErrorMsg
Property OtherErrorMsg As String Implements IExtendedInterface.ErrorMsg