[Mono-dev] [Patch] AssemblyName ctor
Kornél Pál
kornelpal at hotmail.com
Fri Aug 19 18:55:26 EDT 2005
Look at this one:
http://msdn2.microsoft.com/library/k13t5kxe(en-us,vs.80).aspx
This is ordinal and case-insensitive all in one. It requires .NET 2.0 but
the constructor is 2.0-only so this is not a problem.
String.Compare with ignore case matches a lot of cases that are considered
equal for linguistic reasons but should not be considered equal for
case-insensitive ordinal comparsion.
Kornél
----- Original Message -----
From: "Carlos Alberto Cortez" <calberto.cortez at gmail.com>
To: "Andreas Nahr" <ClassDevelopment at A-SoftTech.com>
Cc: "Mono Devel" <mono-devel-list at lists.ximian.com>
Sent: Saturday, August 20, 2005 12:34 AM
Subject: Re: [Mono-dev] [Patch] AssemblyName ctor
> Hello again,
>
> comments below:
>
>
>> + if (String.Compare (parts [i], 0, "Version=", 0, 8, true,
>> CultureInfo.InvariantCulture) == 0)
>> This is most likely incorrect and needs to use an ordinal comparison, no
>> InvariantCulture (used more than one time)
>
> I'm not sure that's correct. I tested in .Net and we requiere
> insensitive comparison, not ordinal ones (as far I understood). So I
> think I'll keep it this way.
>
> Carlos.
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
More information about the Mono-devel-list
mailing list