Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Contains with empty string
Message
 
 
To
18/07/2014 10:29:11
John Baird
Coatesville, Pennsylvania, United States
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01604011
Message ID:
01604065
Views:
43
>>I used in many places in my program the .length property of a way to check if a string is empty. But now that I learned from you and Craig about this "string.IsNullOrWhiteSpace()" I like it much better. Will have to do a lot of refactoring.
>>
>>>See string.IsNullOrWhiteSpace()
>>>
>
>That's the beauty of creating your own extension methods. You don't have to refactor everything to make a change in behavior. I have my own extensions library for just about every data type there is..

It's because you have so much free time (aside from helping Kevin with flat tires) :) I am too busy asking questions (bg).
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform