Re: String.Compare seems to fail when it should not

Brady Kelly <[email protected]>
Newsgroups gmane.comp.windows.devel.dotnet.advanced
Message-ID <[email protected]>
> Correct me as I may be all wrong but I thought dotnet recommends that
> you
> not count on -1,0,1 being indicators for true and false? Have I got
> this
> all wrong (extremely likely)?
>
> John Warner

They do, but they use them here to indicate not just true or false, but also
whether one string is 'higher' or lower than the other one.  String.Equals()
returns a bool.

===================================
This list is hosted by DevelopMentor®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.