Create Implementer (VB)
In This Article
Creates a class implementing a current interface. Selects the contents of the last generated implementor member and drops the marker onto the interface declaration.
#Availability
From the context menus or via shortcuts:
- when the edit cursor or caret is on an interface declaration.
#Example
Interface │IMyInterface
Function TestMethod1(ByVal a As Integer) As Integer
Function TestMethod2(ByVal a As String) As Integer
End Interface
Result:
Private Class IMyInterfaceImplementer
Implements IMyInterface
Public Sub New()
Throw New NotImplementedException()
End Sub
Public Function TestMethod1(ByVal a As Integer) As Integer Implements IMyInterface.TestMethod1
Throw New NotImplementedException()
End Function
Public Function TestMethod2(ByVal a As String) As Integer Implements IMyInterface.TestMethod2│Throw New NotImplementedException()
End Function
End Class
Interface IMyInterface
Function TestMethod1(ByVal a As Integer) As Integer
Function TestMethod2(ByVal a As String) As Integer
End Interface