Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Contains with empty string
Message
De
18/07/2014 10:29:11
John Baird
Coatesville, Pennsylvanie, États-Unis
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01604011
Message ID:
01604063
Vues:
38
>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..
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform