This may seem like an obvious answer, but I can't seem to find an answer. I have this code in VB.NET:
Public Interface ITestInterface
WriteOnly Property Encryption() As Boolean
End Interface
And I also have this class and implementation in VB.NET:
Partial Public Class TestClass
Implements ITestInterface
Public WriteOnly Property EncryptionVB() As Boolean Implements ITestInterface.Encryption
Set(ByVal value As Booleam)
m_Encryption = value
End Set
End Property
End Class
I am trying to convert this over to C#. I have the C# Interface converted over just fine, like so:
public interface ITestInterface
{
bool Encryption { set; }
}
The problem is, how to convert the implementation over. I have this:
public partial class TestClass
{
public bool Encryption
{
set { m_Encryption = value; }
}
}
The problem with this is that in C#, it would seem you have to name the function the same as the interface function you are implementing. How can I call this method EncryptionVB instead of Encryption, but still implement the Encryption property?