On Wed, Dec 30, 2009 at 4:11 PM, A.M. Abdelaziz <[email protected]> wrote: > I think that method does exist in mscorlib.dll as I tried > Console.WriteLine( typeof(string) == typeof(string) ); > it compiled and ran fine > of course I compiled mono with the flag "--with-profile4=yes"
That doesn't necessarily mean that the overload does exist. Reference equality on Type objects usually works fine. I'm not saying that the overload doesn't exist, all I'm saying is that your test doesn't actually prove either case. Try instead compiling that example and running monodis on it. The IL will show you if a method call is being made or if it's just a ceq (reference comparison). -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
