ASP.NET Tutorial/LINQ/Type Inference

Материал из .Net Framework эксперт
Перейти к: навигация, поиск

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

   <source lang="csharp">

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!"</source>