Reputation: 51927
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?
Upvotes: 28
Views: 10367
Reputation: 888283
Like this:
Dim myVar = 3
You'll also need
(At the top of the file or in project settings)
See "Local Type Inference"
Upvotes: 33