[Mono-dev] Bug in corlib/System.Reflection (r139375)

Zoltan Varga vargaz at gmail.com
Tue Aug 18 14:47:15 EDT 2009


Hi,

  This is fixed now.

           thanks

                  Zoltan

On Mon, Aug 17, 2009 at 9:14 PM, Andreas Nahr <
ClassDevelopment at a-softtech.com> wrote:

>  The following addition in r139375 is buggy.
>
>
>
> if (type.ToString ().EndsWith ("[*]")) /*FIXME, the reflection API doesn't
> offer a way around this*/
>
>                 return InflateType (type.GetElementType ()).MakeArrayType
> (1);
>
>
>
> It should not be EndsWith ("[*]") but EndsWith ("[*]",
> StringComparison.Ordinal)
>
> Otherwise it may fail on certain locales (besides being much more memory
> intensive and much slower).
>
>
>
> Greetings
>
> Andreas
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20090818/b36124f1/attachment.html 


More information about the Mono-devel-list mailing list