Re: More integer magic.

Per Bolmstedt <[email protected]> Tue, 26 Feb 2008 05:01:55 -0500
Newsgroups gmane.comp.windows.devel.dotnet.clr
Message-ID <LISTSERV%[email protected]>
On Tue, 26 Feb 2008 11:55:18 +0200, Brady Kelly <[email protected]>
wrote:

> Using PropertyInfo.SetValue(), one can attempt to assign null to an
> integer without an exception.  The integer is assigned a value of
> zero.

I don't think this has anything to do with integers. I'm guessing SetValue()
simply assigns default(T) if the assigned value is invalid.

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com