Bugzilla – Bug 325126
[2.0] Argument(Null)Exception.ParamName not set
Last modified: 2007-09-15 21:24:46 UTC
---- Reported by gert.driesen@pandora.be 2007-08-16 14:48:46 MST ---- On the 2.0 profile, for some reason the ParamName of an ArgumentNullException is not set in the runtime although the same code is executed. To reproduce, compile the following code snippet using gmcs and run it: using System; using System.Reflection; class Program { static void Main () { Type t = typeof (Program); Module module = t.Module; module.GetField (null); } } Expected result: Unhandled Exception: System.ArgumentNullException: Argument cannot be null. Parameter name: name ... Actual result: Unhandled Exception: System.ArgumentNullException: Argument cannot be null. ... ---- Additional Comments From vargaz@gmail.com 2007-08-17 12:07:44 MST ---- Fixed in SVN.