DEV Community

Daisy
Daisy

Posted on

var Keyword in C#

  1. The var keyword instructs the compiler refer to the type of variable assigned on the right side of expression.

  2. The inferred type may be a built-in type, an anonymous type, a user-defined type, or a type defined in the NET class library.

  3. implicit type variable,

Top comments (0)