Click here to Skip to main content
16,011,702 members
Home / Discussions / C#
   

C#

 
AnswerRe: Smart Card Pin
SeMartens3-Feb-09 1:36
SeMartens3-Feb-09 1:36 
GeneralThe use of 'var' Pin
Nathan Gloyn3-Feb-09 1:15
Nathan Gloyn3-Feb-09 1:15 
GeneralRe: The use of 'var' Pin
J4amieC3-Feb-09 1:24
J4amieC3-Feb-09 1:24 
GeneralRe: The use of 'var' Pin
SeMartens3-Feb-09 1:42
SeMartens3-Feb-09 1:42 
GeneralRe: The use of 'var' Pin
Nathan Gloyn3-Feb-09 8:57
Nathan Gloyn3-Feb-09 8:57 
GeneralRe: The use of 'var' Pin
Eddy Vluggen3-Feb-09 1:40
professionalEddy Vluggen3-Feb-09 1:40 
GeneralRe: The use of 'var' Pin
Rob Philpott3-Feb-09 2:03
Rob Philpott3-Feb-09 2:03 
GeneralRe: The use of 'var' Pin
Gideon Engelberth3-Feb-09 3:11
Gideon Engelberth3-Feb-09 3:11 
Since you're asking for opinions, here's mine.

I would not be opposed to seeing var when you are declaring a new something (especially when the type name is long). For example:

var cache = new Dictionary<string, LongTypeNameIWantToTypeJustOnce>();


as opposed to

Dictionary<string, LongTypeNameIWantToTypeJustOnce> cache = new Dictionary<string, LongTypeNameIWantToTypeJustOnce>();


which I either have to break up into multiple lines or have one really long line. Even if the line is not too long, the second way is still noisier than the first.

For the record, this is one of the things I like about the VB syntax (only needing to write the type once when declaring and "new"-ing a variable at the same time)
GeneralRe: The use of 'var' Pin
PIEBALDconsult3-Feb-09 4:26
mvePIEBALDconsult3-Feb-09 4:26 
GeneralRe: The use of 'var' Pin
#realJSOP3-Feb-09 4:54
professional#realJSOP3-Feb-09 4:54 
GeneralRe: The use of 'var' Pin
PIEBALDconsult3-Feb-09 5:11
mvePIEBALDconsult3-Feb-09 5:11 
QuestionCustom Property Pin
ellllllllie3-Feb-09 1:03
ellllllllie3-Feb-09 1:03 
QuestionDateTimepIcker-Error Pin
Udayaraju3-Feb-09 0:59
Udayaraju3-Feb-09 0:59 
AnswerRe: DateTimepIcker-Error Pin
tasumisra3-Feb-09 1:10
tasumisra3-Feb-09 1:10 
AnswerRe: DateTimepIcker-Error Pin
Kaushal Arora9-Feb-09 23:13
Kaushal Arora9-Feb-09 23:13 
Questionget the subreport attributes from rdl report. Pin
bhaumikdv3-Feb-09 0:49
bhaumikdv3-Feb-09 0:49 
QuestionHow to Export data from WebBrowser to Excel using C#? Pin
Tanmayi Chandekar3-Feb-09 0:13
Tanmayi Chandekar3-Feb-09 0:13 
QuestionURGENT, web based database, socket programming Pin
mehdy_1372-Feb-09 23:48
mehdy_1372-Feb-09 23:48 
AnswerRe: URGENT, web based database, socket programming Pin
tasumisra3-Feb-09 0:00
tasumisra3-Feb-09 0:00 
GeneralRe: URGENT, web based database, socket programming Pin
mehdy_1373-Feb-09 0:08
mehdy_1373-Feb-09 0:08 
GeneralRe: URGENT, web based database, socket programming Pin
tasumisra3-Feb-09 0:12
tasumisra3-Feb-09 0:12 
GeneralRe: URGENT, web based database, socket programming Pin
mehdy_1373-Feb-09 0:19
mehdy_1373-Feb-09 0:19 
GeneralRe: URGENT, web based database, socket programming Pin
tasumisra3-Feb-09 0:28
tasumisra3-Feb-09 0:28 
Questionhow to get a button on excel standard bar by excel automation using c#? Pin
abhiram_nayan2-Feb-09 22:41
abhiram_nayan2-Feb-09 22:41 
AnswerRe: how to get a button on excel standard bar by excel automation using c#? Pin
EliottA3-Feb-09 2:30
EliottA3-Feb-09 2:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.