Click here to Skip to main content
15,893,190 members

Survey Free Text Answers

How often do you use the var type in C#? (1= never, 5=always)

17 Aug 2009 to 24 Aug 2009 The var keyword can be a saint or a sinner. Choose "1" if you never use var in this scenario (or never use that scenario), up to "5" for always, whenever possible. (Suggested by Asher)

Text entry answers for sorted by frequency of occurrance.

(6) CListCtrl
(2) NEVER
(1) never ever ever ever, it's an abomination that doesn't belong in decent code
(1) never used it so far.
(1) No C# here, but I plan to use auto in C++
(1) not coding in C#
(1) not had chance to use C# 3.0 yet!
(1) Not using .NET Framework 3.0/3.5/4.0
(1) Not using 2008 yet
(1) Often when declaring generic variables, e.g dictionary which can become 20-30 characters extra if not using var. :-)
(1) Q1 is described poorly
(1) The what?
(1) var is a bug waiting to bite you.
(1) what is the var keyword? I use C# exclusively, but never use var
(1) When I can
(1) When R# suggests it: 3
(1) When the declaration deserves to very clear
(1) whenever the type is obvious (ie var pie = new Pie();)
(1) would much more if it were expandable at design time
(1) CVarControl
(1) c-What?
(1) Dont use .NET
(1) Dont use C#
(1) Don't use C#
(1) Everywhere ReSharper tells me to!
(1) For value types
(1) Haven't moved to VS 2008 yet.
(1) I am a good C# programmer but I dont use the keyword var
(1) i dont C#, C++ rules !!!
(1) I don't use c#, you insensitive sod!
(1) I had never even heard of it until now.
(1) I use var mostly when it's plain clear what type of assignement is going on
(1) In java script?
(1) in javascript
(1) inti
(1) My boss uses "var" for EVERYTHING which makes the code damn near unreadable.
(1) 1
(1) ALWAYS
(1) Always!
(1) CCtrlList