Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How Do You Compare Strings In C#?
Message
 
 
To
07/01/2005 12:10:11
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
00975060
Message ID:
00975318
Views:
28
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.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform