David Connell : Testing for empty String
Best procedures for testing for empty string:
http://blogs.red-gate.com/blogs/davidc/archive/2005/11/18/22.aspx
Bottom line. Use:
.Net 1.1: stringVal.Length == 0
.Net 2.0: string.IsNullOrEmpty(stringVal)
http://blogs.red-gate.com/blogs/davidc/archive/2005/11/18/22.aspx
Bottom line. Use:
.Net 1.1: stringVal.Length == 0
.Net 2.0: string.IsNullOrEmpty(stringVal)
0 Comments:
Post a Comment
Links to this post:
Create a Link
<< Home