opensubscriber
   Find in this group all groups
 
Unknown more information…

a : advanced-dotnet@discuss.develop.com 5 September 2008 • 10:56PM -0400

Re: [ADVANCED-DOTNET] String.Compare seems to fail when it should not
by Brady Kelly

REPLY TO AUTHOR
 
REPLY TO GROUP




> 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

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.