Keywords
Visual Basic is not case sensitive, which means any combinations of upper and lower cases in keywords are acceptable. However Visual Studio automatically converts all Visual Basic keywords to the default capitalised forms, e.g. "Public", "If".
C# is case sensitive and all C# keywords are in lower cases.
Visual Basic and C# share most keywords, with the difference being the default (Remember Visual Basic is not case sensitive) Visual Basic keywords are the capitalised versions of the C# keywords, e.g. "Public" vs "public", "If" vs "if".
A few keywords have very different versions in Visual Basic and C#:
Friend
vsinternal
- access modifiers allowing inter-class but not intra-assembly referenceMe
vsthis
- a self-reference to the current object instanceMustInherit
vsabstract
- prevents a class from being directly instantiated, and forces consumers to create object references to only derived classesMustOverride
vsabstract
- for forcing derived classes to override this methodMyBase
vsbase
- for referring to the base class from which the current class is derivedNotInheritable
vssealed
- for declaring classes that may not be inheritedNotOverridable
vssealed
- for declaring methods that may not be overridden by derived classesOverridable
vsvirtual
- declares a method as being able to be overridden in derived classesShared
vsstatic
- for declaring methods that do not require an explicit instance of an object
Some C# keywords such as sealed
represent different things when applied to methods as opposed to when they are applied to class definitions. VB.NET, on the other hand, uses different keywords for different contexts.
Read more about this topic: Comparison Of C Sharp And Visual Basic .NET, Syntax Comparisons