VB.NET — Visual Basic .NET from Basics to Advanced (with C# Comparison)
Keyword map VB → C#
Dim x As T → T x · Sub/Function → void/method · Me/MyBase → this/base · Shared/Module → static · Nothing → null · Inherits/Implements → : · MustInherit/MustOverride → abstract · Overridable/Overrides → virtual/override · NotInheritable → sealed · Friend → internal · Shadows → new.
Operators
= equality · <> not equal · & concat · \ int division · Mod · ^ power · AndAlso/OrElse short-circuit · Is/IsNot reference · If(c,a,b) ternary · If(x,y) null-coalesce.
Must-know settings
Option Strict On · Option Explicit On · Option Infer On · arrays declare upper bound · (Of T) generics · arr(i) indexing.
Events
Event + RaiseEvent · WithEvents + Handles · AddHandler/RemoveHandler + AddressOf.
Migration
Option Strict first → tests → extract logic to libraries → convert libraries → rebuild UI in ASP.NET Core (strangler) → watch 1-based string functions and integer division.