Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How Do You Compare Strings In C#?
Message
De
07/01/2005 12:10:11
 
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
00975060
Message ID:
00975160
Vues:
24
Einar,

>>I guess it doesn't really make sense to check if a sring is less or greater than another string.
If you have a specific senario where comparing strings are usefull please post and I can take a look at it.<


Of course it makes sense ... when you're sorting things alphabetically. And you use the string.Compare(s1, s2) method. See my reply to Kevin.

~~Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform