Hi mohal92,
Check this example. Now please take its reference and correct your code.
Interface
C#
public interface IInterfaceClass
{
void testmethod();
}
VB.Net
Public Interface IInterfaceClass
Sub testmethod()
End Interface
Code
C#
class Program
{
static void Main(string[] args)
{
ImplementInterface implement = new ImplementInterface();
implement.testmethod();
}
}
class ImplementInterface : IInterfaceClass
{
public void testmethod()
{
Console.WriteLine("Intercace called");
Console.ReadLine();
}
}
VB.Net
Module Module1
Sub Main()
Dim implement As ImplementInterface = New ImplementInterface()
implement.testmethod()
End Sub
Class ImplementInterface : Implements IInterfaceClass
Public Sub testmethod() Implements IInterfaceClass.testmethod
Console.WriteLine("Intercace called")
Console.ReadLine()
End Sub
End Class
End Module
Screenshot