The following is a list of words that should not be used in VB.Net for variable names as they are already used as part of the VB.Net language.

AddHandler
AddressOf
Alias
And
AndAlso
Ansi
Append
As
Assembly
Auto
Binary
Boolean
ByRef
Byte
ByVal
Call
Case
Catch
CBool
CByte
CChar
CDate
CDec
CDbl
Char
CInt
Class
CLng
CObj
Compare
CShort
CSng
CStr
CType
Date
Decimal
Declare
Default
Delegate
Dim
Do
Double
Each
Else
ElseIf
End
EndIf
Enum
Erase
Error
Event
Explicit
False
Finally
For
Friend
Function
Get
GetType
GoTo
Handles
If
Implements
Imports
In
Inherits
Input
Integer
Interface
Is
Let
Lib
Like
Lock
Long
Loop
Me
Mid
Mod
Module
MustInherit
MustOverride
MyBase
MyClass
Namespace
New
Next
Not
Nothing
NotInheritable
NotOverridable
Object
Off
On
Option
Optional
Or
OrElse
Output
Overloads
Overridable
Overrides
ParamArray
Preserve
Private
Property
Protected
Public
RaiseEvent
Random
Read
ReadOnly
ReDim
Rem
RemoveHandler
Resume
Return
Seek
Select
Set
Shadows
Shared
Short
Single
Static
Step
Stop
String
Structure
Sub
SyncLock
Text
Then
Throw
To
True
Try
TypeOf
Unicode
Until
Variant
When
While
With
With
Write
XOr
Reserved words in VB.Net
Tagged on:

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.