[Mono-devel-list] Assembly.GetType hangs?

Kris Luyten kris.luyten at luc.ac.be
Mon Sep 29 11:42:17 EDT 2003


I don't know if this is normal behaviour, but I though I'll post it
anyway. When using Assembly.GetType(String, true, true) with an
erroneous string starting with a "&", the method hangs itself. I think
it is suppose to throw an "ArgumentException" according to the msdn.

For example, the following code waits forever in GetType:
using System;
using System.Reflection;

public class Sample
  public static void Main()
	  Assembly a = Assembly.Load("corlib.dll");
	  Type t = a.GetType("&blabla", true, true);



I am currently using mono and mcs from CVS.

Kris Luyten
Expertisecentrum Digitale Media - Limburgs Universitair Centrum
Wetenschapspark 2  3590 Diepenbeek (Belgium)
tel.: +32 (0)11 268411
email: kris.luyten at luc.ac.be
PGP-key: http://lumumba.luc.ac.be/kris/kris-pub.txt
homepage: http://lumumba.luc.ac.be/kris/

More information about the Mono-devel-list mailing list