0

Does Boxing occur when assigning an integer (e.g. 1, 2 or 3) to a 'var' type variable?

... or is the compiler actually making an intelligent type substitution with the 'var' type so that Boxing and Unboxing won't be an issue?

6th Dec 2016, 12:45 PM
Green Square Dermatology
Green Square Dermatology - avatar
1 Odpowiedź
+ 2
The Compiler just replaces var by actual type. No boxing
19th Dec 2016, 2:10 AM
Dennis Walkewitz
Dennis Walkewitz - avatar