Lets look on some code :
Some more point to notice about var :
1. We can not assign null to var keyword.
2. We can not pass var as a parameter of the method.
3. We can not define return type as var in our method.
4. There is no performance issue with var as .Net execution engine doesn't bother about Var. It will treat it as int or the type we defined at compile time.
Var mystring = "mystring"; will define mystring as string variable.
Happy Coding Hours