When to use or not to use var in C#

The var keyword let you declare a local variable implicit. During compilation, the type of the variable is determined.┬áIt allows you to quickly define a variable, where the type of the variable is trivial. Using the var keyword can lead to some discussion when code guidelines are made up, since some people say it makes programming easier but people may also argue that code is less readable. Read More…

Posted in Best practices, C# at June 25th, 2015. No Comments.