[Mono-devel-list] Bug in Type.GetElementType

Lluis Sanchez lluis at ideary.com
Fri Jun 13 20:07:16 EDT 2003


Hi

There is a bug in Type.GetElementType when called for a reference of an
array type. Test case:

using System;
public class Class1
{
    static void Main(string[] args)
    {
        Type t = Type.GetType ("Class1[]&");
        Console.WriteLine (t.GetElementType());
    }
}

Writes Class1 and should write Class1[].

- Lluis




More information about the Mono-devel-list mailing list