RamsLessonsLearnt

Wednesday, May 7, 2008

IsNullOrEmpty

Never Never use if(x != string.Empty x != null)
use if(!string.IsNullOrEmpty(x))
it saves lots of time and space.
Posted by Ramachandran at 7:58 AM
Labels: isNullOrEmpty, string

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

About Me

Ramachandran
A Software Professional who loves to write
View my complete profile

Blog Archive

  • ►  2021 (4)
    • ►  December (1)
    • ►  October (2)
    • ►  August (1)
  • ►  2016 (2)
    • ►  July (1)
    • ►  June (1)
  • ►  2013 (4)
    • ►  April (4)
  • ►  2012 (1)
    • ►  December (1)
  • ►  2011 (3)
    • ►  July (1)
    • ►  February (2)
  • ►  2010 (8)
    • ►  November (1)
    • ►  September (1)
    • ►  June (1)
    • ►  April (4)
    • ►  February (1)
  • ►  2009 (13)
    • ►  September (5)
    • ►  July (4)
    • ►  April (2)
    • ►  February (1)
    • ►  January (1)
  • ▼  2008 (24)
    • ►  December (7)
    • ►  October (3)
    • ►  July (3)
    • ►  June (1)
    • ▼  May (1)
      • IsNullOrEmpty
    • ►  April (3)
    • ►  February (3)
    • ►  January (3)
  • ►  2007 (31)
    • ►  December (4)
    • ►  November (12)
    • ►  October (1)
    • ►  September (8)
    • ►  July (6)
Simple theme. Powered by Blogger.