intellisense

There are 1 entries for the tag intellisense

What isn’t RIGHT with var

Let me start by saying I have no qualms against using var to declare variables. I use it myself when it suits me. I find the best situations to take advantage of it are: When using anonymous types When declaring variables which are instances of an interface The first case is really not optional. You can’t declare an anonymous type without var. The second, should be used carefully because it can impede readability if used incorrectly. Since you cannot initialize an interface the right side of your declaration might...

 

 

Copyright © Mark J. Miller