E.g. how do I get VB.Net to statically type a local variable to be the static type of the expression on the right had side of the assignment?
+10
A:
Like this:
Dim myVar = 3
You'll also need
(At the top of the file or in project settings)
See "Local Type Inference"
SLaks
2009-12-22 14:29:11
Or "Option Infer On" in project settings, this can be set as the default through Tools->Options
Binary Worrier
2009-12-22 14:32:58