[Mono-dev] ArgumentNullException Param

Gavin Landon Gavin.Landon at ignitetech.com
Wed Dec 19 15:29:10 EST 2007


Ok, thank, I guess I don't understand why there is a string param that
doesn't seem to do anything.  Every site I went too, said nothing about
a second param.  Not really a mono issue though.   I see it works too,
thanks again.

________________________________

From: neonux at gmail.com [mailto:neonux at gmail.com] On Behalf Of Cedric
Vivier
Sent: Wednesday, December 19, 2007 10:20 AM
To: Gavin Landon
Cc: mono-devel-list at lists.ximian.com
Subject: Re: [Mono-dev] ArgumentNullException Param


On Dec 19, 2007 5:14 PM, Gavin Landon <Gavin.Landon at ignitetech.com>
wrote:


	When I pass something into ArgumentNullException I was expecting
it to
	show up as part of the error message.  I assumed because when
using
	NotSupportedException I know it does.  What am I missing?

ArgumentNullException first argument must be the name of the null
parameter.
If you want to show up a specific error message then you must use
ArgumentNullException("paramName", "Your message")







More information about the Mono-devel-list mailing list