Click here to Skip to main content
15,895,142 members

Comments by Sumit_Gupta (Top 1 by date)

Sumit_Gupta 7-Feb-11 23:32pm View    
Deleted
but if string is null then the check on string.length will give us null reference exception isn't it..so to avoid this I would check null for string before checking length, so we have two steps now.

i would rather go for string.isnullorempty in that case or the new introduced string.isnullorwhitespace