• Saves Valuable Time
  • Trusted Accuracy for 12 Years
  • 15-Day Money-Back Guarantee

C# Equivalent to VB Interfaces

Defining Interfaces

VB.NET C#
Public Interface IFoo
    Sub Method()
End Interface
public interface IFoo
{
    void Method();
}

Implementing Interfaces

VB.NET C#
Public Class Foo
    Implements IFoo

    Public Sub Method() Implements IFoo.Method
    End Sub
End Class
//implicit implementation:
public class Foo : IFoo
{
    public void Method()
    {
    }
}

//explicit implementation:
public class Foo : IFoo
{
    void IFoo.Method()
    {
    }
}


Use Instant C# to convert from VB.NET to C#.     

Additional resource: VB.NET and C# Equivalents


Copyright © 1997 – 2017 Tangible Software Solutions Inc.