Tuesday, December 04, 2012

Type Inference 2

Automatic type inference will work only within code blocks such as constructors, methods, or property get/set blocks.


If you try to use type inference with var, the compiler will give the following error


The type or namespace name 'var' could not be found (are you missing a using directive or an assembly reference?)

No comments:

Post a Comment