Click here to Skip to main content
15,892,480 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# Improving string.IsNullOrEmpty readability Pin
PIEBALDconsult18-Feb-19 15:12
mvePIEBALDconsult18-Feb-19 15:12 
GeneralRe: C# Improving string.IsNullOrEmpty readability Pin
BillWoodruff18-Feb-19 22:14
professionalBillWoodruff18-Feb-19 22:14 
GeneralRe: C# Improving string.IsNullOrEmpty readability Pin
Richard Deeming25-Feb-19 8:10
mveRichard Deeming25-Feb-19 8:10 
GeneralRe: C# Improving string.IsNullOrEmpty readability Pin
BillWoodruff25-Feb-19 20:40
professionalBillWoodruff25-Feb-19 20:40 
GeneralRe: C# Improving string.IsNullOrEmpty readability Pin
Super Lloyd18-Feb-19 16:19
Super Lloyd18-Feb-19 16:19 
GeneralRe: C# Improving string.IsNullOrEmpty readability Pin
the goat in your machine18-Feb-19 17:15
the goat in your machine18-Feb-19 17:15 
GeneralRe: C# Improving string.IsNullOrEmpty readability Pin
doobiester 19-Feb-19 2:11
doobiester 19-Feb-19 2:11 
GeneralRe: C# Improving string.IsNullOrEmpty readability Pin
OriginalGriff18-Feb-19 20:53
mveOriginalGriff18-Feb-19 20:53 
I'd agree with Lopati - IsNullOrEmpty is a specific question (as is IsNullOrWhitespace) which specifies exactly what conditions it checks for: HasValue doesn't, it implies a degree of "valueness" which is not implicit to a string, but is added by context. HasValue could mean "has a valid numeric", "has a name and address" which "IsNullOrEmpty" doesn't - it's a basic generic check which prepares the way for more explicit "value" checking.

I'll stick with IsNullOrWhitespace myself!
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!

GeneralRe: C# Improving string.IsNullOrEmpty readability Pin
Nelek18-Feb-19 23:51
protectorNelek18-Feb-19 23:51 
GeneralRe: C# Improving string.IsNullOrEmpty readability Pin
kalberts18-Feb-19 21:02
kalberts18-Feb-19 21:02 
GeneralRe: C# Improving string.IsNullOrEmpty readability Pin
RickZeeland18-Feb-19 21:49
mveRickZeeland18-Feb-19 21:49 
GeneralRe: C# Improving string.IsNullOrEmpty readability Pin
BillWoodruff19-Feb-19 0:08
professionalBillWoodruff19-Feb-19 0:08 
GeneralRe: C# Improving string.IsNullOrEmpty readability Pin
RickZeeland19-Feb-19 1:10
mveRickZeeland19-Feb-19 1:10 
GeneralRe: C# Improving string.IsNullOrEmpty readability Pin
BillWoodruff19-Feb-19 15:38
professionalBillWoodruff19-Feb-19 15:38 
GeneralRe: C# Improving string.IsNullOrEmpty readability Pin
Eddy Vluggen19-Feb-19 3:11
professionalEddy Vluggen19-Feb-19 3:11 
GeneralRe: C# Improving string.IsNullOrEmpty readability Pin
  Forogar  19-Feb-19 3:41
professional  Forogar  19-Feb-19 3:41 
GeneralRe: C# Improving string.IsNullOrEmpty readability Pin
BillWoodruff19-Feb-19 15:35
professionalBillWoodruff19-Feb-19 15:35 
GeneralRe: C# Improving string.IsNullOrEmpty readability Pin
  Forogar  21-Feb-19 2:32
professional  Forogar  21-Feb-19 2:32 
GeneralRe: C# Improving string.IsNullOrEmpty readability Pin
#realJSOP19-Feb-19 8:10
mve#realJSOP19-Feb-19 8:10 
GeneralHow to swear in Latin Pin
Brisingr Aerowing18-Feb-19 13:14
professionalBrisingr Aerowing18-Feb-19 13:14 
GeneralRe: How to swear in Latin Pin
Super Lloyd18-Feb-19 14:09
Super Lloyd18-Feb-19 14:09 
GeneralRe: How to swear in Latin Pin
Daniel Pfeffer18-Feb-19 21:16
professionalDaniel Pfeffer18-Feb-19 21:16 
GeneralRe: How to swear in Latin Pin
Marc Clifton19-Feb-19 1:49
mvaMarc Clifton19-Feb-19 1:49 
GeneralRe: How to swear in Latin Pin
dandy7219-Feb-19 9:07
dandy7219-Feb-19 9:07 
GeneralRoomba fail Pin
Brisingr Aerowing18-Feb-19 12:59
professionalBrisingr Aerowing18-Feb-19 12:59 

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.