Why I don't like Visual Basic.NET – Part #1

In my work, I have to work quite often with Visual Basic. This language have some advantages over C#, but most of the time, it is very annoying.

Let’s take Interfaces for example:

Public Interface IDoNothing
    Sub Method()
End Interface

And we can implement two classes:

Public Class FirstClass
    Implements IDoNothing

    Public Sub Method()
        Console.WriteLine("FirstClass.Method")
    End Sub

    Public Sub ThisIsMethod() Implements IDoNothing.Method
        Console.WriteLine("FirstClass.ThisIsMethod")
    End Sub
End Class

Public Class PrivatClass
    Implements IDoNothing

    Private Sub Method() Implements IDoNothing.Method
        Console.WriteLine("PrivatClass.Method")
    End Sub
End Class

Czytaj dalej Why I don't like Visual Basic.NET – Part #1