title: Converting interface implementation from VB.NET to C#
body: <p>This may seem like an obvious answer, but I can't seem to find an answer. I have this code in VB.NET: </p>
  
  <pre><code>Public Interface ITestInterface
      WriteOnly Property Encryption() As Boolean
  End Interface
  </code></pre>
  
  <p>And I also have this class and implementation in VB.NET:</p>
  
  <pre><code>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
  </code></pre>
  
  <p>I am trying to convert this over to C#. I have the C# Interface converted over just fine, like so:</p>
  
  <pre><code>public interface ITestInterface
  {
      bool Encryption { set; }
  }
  </code></pre>
  
  <p>The problem is, how to convert the implementation over. I have this:</p>
  
  <pre><code>public partial class TestClass
  {
      public bool Encryption 
      {
           set { m_Encryption = value; }
      }
  }
  </code></pre>
  
  <p>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?</p>