星期四, 九月 07, 2006

String.Empty

There are some discusses about a string is empty.I think that is true:
1. judge a string is empty:
somestring==null || somestring.length==0

2.judge a string is not empty:

somestring!=null && somestring.length>0

3.the simplest:
string.IsNullOrEmpty(somestring)