Understanding Type Inference: C# or VB.NET compiler determine the type of a variable at compile time. : Type Inference « LINQ « ASP.NET Tutorial






Here's an example of how you use type inference with C#:

var message = "Hello World!";

And here is how you would use type inference with VB.NET:

Dim message = "Hello World!"








17.8.Type Inference
17.8.1.Understanding Type Inference: C# or VB.NET compiler determine the type of a variable at compile time.