[Mono-dev] ArgumentNullException Param

Cedric Vivier cedricv at neonux.com
Wed Dec 19 11:20:26 EST 2007


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")
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20071219/d0dce9b8/attachment.html 


More information about the Mono-devel-list mailing list