Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How Do You Compare Strings In C#?
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
00975060
Message ID:
00975703
Vues:
16
Of course
	return string.Compare(s2, s1);
should also reverse the order of the sort.

>
>>
>>	return string.Compare(s1, s2);
>>}
>>
>
>That's what I was looking for, or at least this ordered them oldest first. I figured that since Intellsense suggests that this returns an integer, multiplying by -1 would give me what I was originally aiming for - reverse date order. And it worked!!!
>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform