Wiki
Version 1 (modified by Chuck, 15 years ago)

--

Although you can explicitly declare the type of a local variable, you don't have to:

# the long way:
i as int = 0

# the short, easy way:
i = 0

The type of the variable on the left is taken to be the type of the expression on the right.