C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
VB.NET Keywords
See the keywords in VB.NET. Keywords are used in declarations and statements.
Keywords. Programs combine parts. VB.NET has many keywords. We learn the meaning of these keywords. We then combine them into higher-level constructs and programs.
Some keywords (like For and While) map to looping constructs. And others (Class, Dim and Sub) are part of declarations. With keywords we compose programs.#Const#If#RegionAddHandlerAddressOfAndAndAlsoAsAsyncAwaitBooleanByRefByteByValCaseCatchCharClassConstDateDecimalDelegateDimDirectCastDoDo UntilDo WhileDoubleEndEnumEventExitFalseFinallyForFor EachFriendFunctionGetTypeGoToHandlesIfImportsInheritsIntegerInterfaceIsIsNotIteratorLongMeMidModuleMustInheritMyClassNamespaceNotNothingNotInheritableObjectOfOptionalOverloadsOrOrElseParamArrayPartialPrivatePropertyPublicRaiseEventReadOnlyReDimREMReturnSByteSelectShadowsSharedShortSingleStringStructureSubSyncLockThrowTrueTryTryCastUIntegerULongUShortUsingWhileWithWithEventsWriteOnlyYield
Types. Here is a list of common types in the .NET Framework. We use these types with VB.NET code. Not all types are included in this list.ArrayArrayListConsoleDataRowDataSetDataTableDateTimeExceptionFileHashSetHashtableHttpClientIEnumerableKeyValuePairListProcessQueueRandomRegexStackStreamReaderStreamWriterStringStringBuilderTaskTimerTimeSpanTuple
Math. Many mathematical functions are available in the System namespace. The Math class provides these. With Math, we avoid implementing this logic.Math.AbsMath.CeilingMath.FloorMath.MaxMath.MinMath.RoundMath.SqrtMath.Truncate
Algorithms. Here we combine data structures and functions to achieve complex tasks. An algorithm is a well-known (or complex) method.Algorithm: FibonacciAlgorithm: Levenshtein
Windows. The Windows Forms platform supports Windows GUI programs. And the VB.NET language can be used to control these programs. We run code as a result of event handlers.BackgroundWorkerButtonDataGridViewMessageBox.ShowOpenFileDialogTextBox
Syntax. The VB.NET language is easy to read. It has clear rules. It has predictable logic. But some complexity exists in the language.<X> (Attribute):= (Named argument)X? (Nullable)"${x}" (String interpolation)
Contextual. Some keywords are used together (For and Each). They change meaning when used part of a larger construct. And some words (like from LINQ) are contextual and not listed above.
Many keywords, like SyncLock, are narrow in their utility. VB.NET retains older language terms like "Mid" and "Date." These have been replaced with newer .NET Framework methods.
With this language, we access the full power of the .NET Framework. Many programs are written in VB.NET. A developer who understands VB.NET is in a good position.
© TheDeveloperBlog.com