So you define var you not need to convert in real type it automatially convert and you can directly us using all related property and methods form actual type.
Where in object we have to write a code for convert in real type then only we can access its related types properties and methods.
amitpatel.it
Star
7884 Points
1844 Posts
Re: var vs object
Feb 02, 2012 05:52 AM|LINK
var is implecit type and object is explicit type.
So you define var you not need to convert in real type it automatially convert and you can directly us using all related property and methods form actual type.
Where in object we have to write a code for convert in real type then only we can access its related types properties and methods.
Below are the good ref links with more details.
http://www.codeproject.com/Articles/233553/Difference-between-Object-Dynamic-and-Var
MCPD Enterprise and Web Application
MCTS Web, Window and Enterprise Application