How can I create a custom code snippet/method stub for interface implementation on a class?
Following sample code is my requirement.
For example:
‘This is my sample interface.
Interface IExample
Function GetExample(ByVal obj As Object) As String
End Interface
‘When I implement this interface on any class, the sample code will be placed (after press TAB key) within that Example class like the following.
Public Class Example
Implements IExample
Public Function GetExample(ByVal obj As Object) As String Implements IExample.GetExample
End Function
End Class
‘But I want it like this. Is it possible?
Public Class Example
Implements IExample
Public Function GetExample(ByVal obj As Object) As String Implements IExample.GetExample
Try
Catch ex As Exception
‘Execption Handling Code.
End Try
End Function
End Class