Community

When should you use the ‘var’ keyword in C#?

(Vulpes) ‘var’ is a contextual keyword that was first introduced in C# 3.0. It’s described as contextual because it’s only a keyword when used in a certain context – in other contexts it can be used as an ordinary identifier.

Read More - Register for Free Membership