Mark's Stuff

My Foray Into Weblogging. Using this to store interesting items for later review.

Tuesday, November 22, 2005

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)

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

Links to this post:

Create a Link

<< Home