Why should I use var instead of a type? [duplicate]

It’s really just a coding style. The compiler generates the exact same for both variants.

See also here for the performance question:

  • Will using ‘var’ affect performance?

Leave a Comment