ASP.NET Tutorial/LINQ/Type Inference

Материал из .Net Framework эксперт
Версия от 14:58, 26 мая 2010; Admin (обсуждение | вклад) (1 версия)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

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>