Search for a systematic, comprehensive, and complete comparison of the syntax of VB.NET and C #

I am an experienced VB.NET developer who wants to start with C #. Im looking for a web comparison the syntax of both languages ​​as a quick link.

I found myself arranging VB.NET syntax templates such as ...

Public MustInherit Class BaseClass
    Public MustOverride Sub PublicMustOverrideSub(ByVal byValParam As Integer, ByRef byRefParam As String)

    Protected MustOverride Function ProtectedMustOverrideFunc() As Double

    Friend Sub FriendSubWithParamArray(ByVal ParamArray params() As Byte)
    End Sub

    Private Property PrivateProperty() As Integer
        Get
        End Get
        Set(ByVal value As Integer)
        End Set
    End Property

    Friend ReadOnly Property FriendReadOnlyProperty() As String
        Get
            Return String.Empty
        End Get
    End Property

    Public WriteOnly Property PublicWriteOnlyProperty() As Double
        Set(ByVal value As Double)
        End Set
    End Property
End Class

... launching the Fusion developer ...

public abstract class BaseClass
{
    public abstract void PublicMustOverrideSub(int byValParam, ref string byRefParam);

    protected abstract double ProtectedMustOverrideFunc();

    internal void FriendSubWithParamArray(params byte[] @params)
    {
    }

    private int PrivateProperty {
        get { }
        set { }
    }

    internal string FriendReadOnlyProperty {
        get { return string.Empty; }
    }

    public double PublicWriteOnlyProperty {
        set { }
    }
}

... and consuming results. But there must be a better way. Do you know someone?

+3
source share

Source: https://habr.com/ru/post/1771197/


All Articles