dotnetomaniak.pl - Artykuły z tagiem var keyword

Recently, I had quite an interesting discussion about var keyword in C#. Basically, my interlocutor tried to convince me that using var we drastically reduce code readability, so we should only use that together with anonymous types. He also mentioned performance and that some operations cannot be done using implicit typing. Well, if you’ve been reading my blog for some time, you’ve probably spotted that I’m a big fan of vars, and I put them every time it’s possible. B...

Źródło: foreverframe.net
Dziel się z innymi:
To var or not to var? - Forever F[r]ame

Sztuka programowania 2529 dni, 2 godziny, 28 minut temu dpawlukiewicz 272 źrodło rozwiń