Variant is back but in C#

var is the keyword to define a variant type variable. Unlike an object type, var is an enumeration and boxing/unboxing operation is not required during the conversion.

This is how you define a var.

Here is a screen from Session notes on new C# 3.0 features.

Ebook Download
View all
Learn
View all