May 2010
Intermediate to advanced
1272 pages
61h 18m
English
The word local in the Local Type Inference definition has a special meaning. Local type inference works only with local variables defined within code blocks, whereas it does not work with class-level declarations. For example, consider the following code:

Local type inference affects the completeName local variable, which is enclosed within a method. Now consider the following code:

The preceding code will not be compiled because local type inference does not affect class-level declarations; therefore, the Visual Basic ...
Read now
Unlock full access