Implicitly Typed Local Variables (www.iansuttle.com)
submitted by
isuttle(1140) 2 years, 6 months ago
C# 3.0 introduces implicitly typed local variables by way of the keyword “var”. The use of var allows one to assign a number of different types to a variable without explicitly stating that variable’s type. Var is actually not a type at all, but a keyword which instructs the compiler to infer the most appropriate type based on the value or expression to the right of the equals sign.
|
category: C#
|
Views: 2
tags:
.net3.5 C#3.0 another
Everyones tags:
Your Tags: