Using "var"

Other than typing a little bit less, what's the advantage of writing "var x = new MyClass();" rather than "MyClass x = new MyClass();"? Thanks.

1 comment
Comment actions Permalink

http://resharper.blogspot.com/2008/03/varification-using-implicitly-typed.html

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"pbz" <pzolja@yahoo.com> wrote in message
news:8684084.18721206200761912.JavaMail.jive@app4.labs.intellij.net...

Other than typing a little bit less, what's the advantage of writing "var
x = new MyClass();" rather than "MyClass x = new MyClass();"? Thanks.



0

Please sign in to leave a comment.