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

Yeah, I agree ... it kinda sucks. But, you learn to live with it. <g> I suspect that maybe Java didn't have that capability? They say that C# is more like Java than C++, but never knowing either one of them, I can't say for sure.

~~Bonnie




>Bonnie,
>
>So C# doesn't implement < , >, < =, >= operators for strings? That was pretty standard in C++ so it's odd that C# doesn't have them.
>
>>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 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