Click here to Skip to main content
15,887,083 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: c# var Pin
GuyThiebaut24-Jun-20 2:34
professionalGuyThiebaut24-Jun-20 2:34 
AnswerRe: c# var PinPopular
Marc Clifton23-Jun-20 3:21
mvaMarc Clifton23-Jun-20 3:21 
GeneralRe: c# var Pin
ZurdoDev23-Jun-20 3:29
professionalZurdoDev23-Jun-20 3:29 
GeneralRe: c# var PinPopular
OriginalGriff23-Jun-20 3:41
mveOriginalGriff23-Jun-20 3:41 
GeneralRe: c# var Pin
obermd23-Jun-20 4:18
obermd23-Jun-20 4:18 
GeneralRe: c# var Pin
Richard Deeming23-Jun-20 4:51
mveRichard Deeming23-Jun-20 4:51 
GeneralRe: c# var Pin
OriginalGriff23-Jun-20 4:59
mveOriginalGriff23-Jun-20 4:59 
GeneralRe: c# var Pin
Nelek23-Jun-20 5:25
protectorNelek23-Jun-20 5:25 
I kind of find it easier to read with var first.

But this is more secure, since you have to know what you are going to need and the you create the new instance in the lazy mode.

Best of both options, I guess
M.D.V. Wink | ;)

If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.

GeneralRe: c# var Pin
Marc Clifton23-Jun-20 5:25
mvaMarc Clifton23-Jun-20 5:25 
GeneralRe: c# var Pin
BillWoodruff24-Jun-20 0:52
professionalBillWoodruff24-Jun-20 0:52 
GeneralRe: c# var Pin
pkfox23-Jun-20 20:46
professionalpkfox23-Jun-20 20:46 
GeneralRe: c# var Pin
Fabio Franco24-Jun-20 12:32
professionalFabio Franco24-Jun-20 12:32 
GeneralRe: c# var Pin
David On Life24-Jun-20 14:03
David On Life24-Jun-20 14:03 
GeneralRe: c# var Pin
dandy7223-Jun-20 7:16
dandy7223-Jun-20 7:16 
AnswerRe: c# var Pin
Slacker00723-Jun-20 3:24
professionalSlacker00723-Jun-20 3:24 
GeneralRe: c# var Pin
OriginalGriff23-Jun-20 3:42
mveOriginalGriff23-Jun-20 3:42 
GeneralRe: c# var Pin
Johnny J.23-Jun-20 3:57
professionalJohnny J.23-Jun-20 3:57 
GeneralRe: c# var Pin
F-ES Sitecore23-Jun-20 6:14
professionalF-ES Sitecore23-Jun-20 6:14 
GeneralRe: c# var Pin
Slacker00723-Jun-20 6:18
professionalSlacker00723-Jun-20 6:18 
AnswerRe: c# var Pin
User 1106097923-Jun-20 3:50
User 1106097923-Jun-20 3:50 
AnswerRe: c# var PinPopular
obermd23-Jun-20 4:14
obermd23-Jun-20 4:14 
AnswerRe: c# var Pin
Wendelius23-Jun-20 4:48
mentorWendelius23-Jun-20 4:48 
GeneralRe: c# var Pin
Richard Deeming23-Jun-20 4:53
mveRichard Deeming23-Jun-20 4:53 
AnswerRe: c# var Pin
Pete O'Hanlon23-Jun-20 5:08
mvePete O'Hanlon23-Jun-20 5:08 
GeneralRe: c# var Pin
Nelek23-Jun-20 5:31
protectorNelek23-Jun-20 5:31 

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.