opensubscriber
   Find in this group all groups
 
Unknown more information…

a : advanced-dotnet@discuss.develop.com 9 September 2008 • 2:32AM -0400

Re: [ADVANCED-DOTNET] String.Compare seems to fail when it should not
by Sébastien Lorion

REPLY TO AUTHOR
 
REPLY TO GROUP




It won't work with international characters.

Sébastien
On Mon, Sep 8, 2008 at 2:19 PM, Per Bolmstedt
<discuss.develop.com@ul7....>wrote:

> On Mon, 8 Sep 2008 13:23:16 -0400, =?ISO-8859-1?Q?S=E9bastien_Lorion?=
> <sebastien.lorion@GMAI...> wrote:
>
> > by using OrdinalIgnoreCase, you are limiting yourself to only the
> > first 128 chars of ASCII, which in 2008 is kinda out of fashion...
>
> How so?
>
> According to "New Recommendations for Using Strings in Microsoft .NET 2.0
> "[1]; "Comparisons made using OrdinalIgnoreCase are behaviorally the
> composition of two calls: calling ToUpperInvariant on both string
> arguments, and doing an Ordinal comparison.".
>
> 1: http://msdn.microsoft.com/en-us/library/ms973919.aspx
>
> ===================================
> This list is hosted by DevelopMentor(R)  http://www.develop.com
>
> View archives and manage your subscription(s) at
> http://discuss.develop.com
>

===================================
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.